diff options
Diffstat (limited to 'mail/qmail-run/files/qmailsend.sh')
-rw-r--r-- | mail/qmail-run/files/qmailsend.sh | 16 |
1 files changed, 12 insertions, 4 deletions
diff --git a/mail/qmail-run/files/qmailsend.sh b/mail/qmail-run/files/qmailsend.sh index 2bd73865273..6b0be89ac75 100644 --- a/mail/qmail-run/files/qmailsend.sh +++ b/mail/qmail-run/files/qmailsend.sh @@ -1,6 +1,6 @@ #!@RCD_SCRIPTS_SHELL@ # -# $NetBSD: qmailsend.sh,v 1.2 2004/08/03 08:59:24 schmonz Exp $ +# $NetBSD: qmailsend.sh,v 1.3 2004/08/23 03:47:48 schmonz Exp $ # # @PKGNAME@ script to control qmail-send (local and outgoing mail). # @@ -9,7 +9,9 @@ # REQUIRE: LOGIN # KEYWORD: shutdown -. /etc/rc.subr +if [ -f /etc/rc.subr ]; then + . /etc/rc.subr +fi name="qmailsend" rcvar=${name} @@ -88,5 +90,11 @@ qmailsend_hup() run_rc_command reload } -load_rc_config $name -run_rc_command "$1" +if [ -f /etc/rc.subr ]; then + load_rc_config $name + run_rc_command "$1" +else + @ECHO_N@ " ${name}" + qmailsend_precmd + eval ${command} ${qmailsend_flags} ${command_args} +fi |