diff options
Diffstat (limited to 'mail/qmail-run/files/qmailsmtpd.sh')
-rw-r--r-- | mail/qmail-run/files/qmailsmtpd.sh | 16 |
1 files changed, 12 insertions, 4 deletions
diff --git a/mail/qmail-run/files/qmailsmtpd.sh b/mail/qmail-run/files/qmailsmtpd.sh index 18cdb146c38..aafb26603b4 100644 --- a/mail/qmail-run/files/qmailsmtpd.sh +++ b/mail/qmail-run/files/qmailsmtpd.sh @@ -1,6 +1,6 @@ #!@RCD_SCRIPTS_SHELL@ # -# $NetBSD: qmailsmtpd.sh,v 1.2 2004/08/03 08:59:24 schmonz Exp $ +# $NetBSD: qmailsmtpd.sh,v 1.3 2004/08/23 03:47:48 schmonz Exp $ # # @PKGNAME@ script to control qmail-smtpd (SMTP service). # @@ -8,7 +8,9 @@ # PROVIDE: qmailsmtpd mail # REQUIRE: qmailsend -. /etc/rc.subr +if [ -f /etc/rc.subr ]; then + . /etc/rc.subr +fi name="qmailsmtpd" rcvar=${name} @@ -77,5 +79,11 @@ qmailsmtpd_cdb() @CHMOD@ 644 @PKG_SYSCONFDIR@/tcp.smtp.cdb } -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}" + qmailsmtpd_precmd + eval ${command} ${qmailsmtpd_flags} ${command_args} +fi |