diff options
author | plunky <plunky> | 2009-10-11 10:22:51 +0000 |
---|---|---|
committer | plunky <plunky> | 2009-10-11 10:22:51 +0000 |
commit | a2d15d2f3068b08a6ea63db40d5e263f0d96923f (patch) | |
tree | a3c47da7fbc800f7d4e7019d97e288669dfea40c /mail | |
parent | 14f67aad6ce436b9373ecfcca97338fc3c7f9e4f (diff) | |
download | pkgsrc-a2d15d2f3068b08a6ea63db40d5e263f0d96923f.tar.gz |
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 (limited to 'mail')
-rw-r--r-- | mail/nullmailer/files/nullmailer.sh | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/mail/nullmailer/files/nullmailer.sh b/mail/nullmailer/files/nullmailer.sh index bb719f9fb4c..cccf19ff943 100644 --- a/mail/nullmailer/files/nullmailer.sh +++ b/mail/nullmailer/files/nullmailer.sh @@ -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="@PKG_SYSCONFDIR@/nullmailer/remotes" 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" |