pkgsrc-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[pkgsrc/trunk]: pkgsrc/mail/nullmailer/files fix a problem with the rc script...



details:   https://anonhg.NetBSD.org/pkgsrc/rev/d03821115bf9
branches:  trunk
changeset: 400098:d03821115bf9
user:      plunky <plunky%pkgsrc.org@localhost>
date:      Sun Oct 11 10:22:51 2009 +0000

description:
fix a problem with the rc script where the command would not start
at boot time. This is because the & is within the command_args
string. use a start_cmd instead.

diffstat:

 mail/nullmailer/files/nullmailer.sh |  10 ++++++++--
 1 files changed, 8 insertions(+), 2 deletions(-)

diffs (30 lines):

diff -r 530dfe98ec71 -r d03821115bf9 mail/nullmailer/files/nullmailer.sh
--- a/mail/nullmailer/files/nullmailer.sh       Sun Oct 11 10:10:12 2009 +0000
+++ b/mail/nullmailer/files/nullmailer.sh       Sun Oct 11 10:22:51 2009 +0000
@@ -1,6 +1,6 @@
 #!@RCD_SCRIPTS_SHELL@
 #
-# $NetBSD: nullmailer.sh,v 1.2 2005/08/20 02:20:45 schmonz Exp $
+# $NetBSD: nullmailer.sh,v 1.3 2009/10/11 10:22:51 plunky Exp $
 #
 # PROVIDE: mail
 # REQUIRE: LOGIN
@@ -15,11 +15,17 @@
 required_files="${required_files} @VARBASE@/spool/nullmailer/trigger"
 required_dirs="@VARBASE@/spool/nullmailer/queue @VARBASE@/spool/nullmailer/tmp"
 command="@PREFIX@/libexec/nullmailer/nullmailer-send"
-command_args="2>&1 | logger -t nullmailer -p mail.info &"
+start_cmd="nullmailer_start"
 
 nullmailer_user="@NULLMAILER_USER@"
 nullmailer_group="@NULLMAILER_GROUP@"
 
+nullmailer_start()
+{
+
+       ${command} 2>&1 | logger -t ${name} -p mail.info &
+}
+
 if [ -f /etc/rc.subr ]; then
        load_rc_config $name
        run_rc_command "$1"



Home | Main Index | Thread Index | Old Index