diff options
author | plunky <plunky@pkgsrc.org> | 2009-10-11 10:22:51 +0000 |
---|---|---|
committer | plunky <plunky@pkgsrc.org> | 2009-10-11 10:22:51 +0000 |
commit | cbded932768d5367dd4d649fc225e5136c180f57 (patch) | |
tree | a3c47da7fbc800f7d4e7019d97e288669dfea40c /mail | |
parent | 340c1fa83080c6f3d5879da47bea933305dbf675 (diff) | |
download | pkgsrc-cbded932768d5367dd4d649fc225e5136c180f57.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" |