summaryrefslogtreecommitdiffstats
path: root/etc
diff options
context:
space:
mode:
authorfjoe <fjoe@FreeBSD.org>2004-04-05 16:26:22 +0000
committerfjoe <fjoe@FreeBSD.org>2004-04-05 16:26:22 +0000
commit5fd7f55e2fbbe15c6218a0d91683a5a33e4fc445 (patch)
tree7deb4ee8fb413f0f95fe9953f4b48c8e02539077 /etc
parent4aa199a1787f5cd9ef5d928de6e60cabce569ee4 (diff)
downloadFreeBSD-src-5fd7f55e2fbbe15c6218a0d91683a5a33e4fc445.zip
FreeBSD-src-5fd7f55e2fbbe15c6218a0d91683a5a33e4fc445.tar.gz
Allow this script to be used for Postfix:
- Use sendmail_foo variables after load_rc_config so that they actually work. - Utilize sendmail_procname. - Check sendmail_submit_enable instead of sendmail_enable when dealing with mail submission MTA.
Diffstat (limited to 'etc')
-rwxr-xr-xetc/rc.d/sendmail7
1 files changed, 4 insertions, 3 deletions
diff --git a/etc/rc.d/sendmail b/etc/rc.d/sendmail
index a921267..05dbd3f 100755
--- a/etc/rc.d/sendmail
+++ b/etc/rc.d/sendmail
@@ -18,10 +18,11 @@
name="sendmail"
rcvar=`set_rcvar`
required_files="/etc/mail/${name}.cf"
-command=${sendmail_program:-/usr/sbin/sendmail}
-pidfile=${sendmail_pidfile:-/var/run/sendmail.pid}
load_rc_config $name
+command=${sendmail_program:-/usr/sbin/sendmail}
+pidfile=${sendmail_pidfile:-/var/run/sendmail.pid}
+procname=${sendmail_procname:-/usr/sbin/sendmail}
case ${sendmail_enable} in
[Nn][Oo][Nn][Ee])
@@ -73,7 +74,7 @@ run_rc_command "$1"
required_files=
-if ! checkyesno sendmail_enable; then
+if ! checkyesno sendmail_submit_enable; then
name="sendmail_submit"
rcvar=`set_rcvar`
start_cmd="${command} ${sendmail_submit_flags}"
OpenPOWER on IntegriCloud