6 [[ ${SENDMAIL_OPTS+set} ]] || SENDMAIL_OPTS
="-bd -q30m -L sm-mta"
7 [[ ${CLIENTMCLIENTMQUEUE_OPTS+set} ]] || CLIENTMQUEUE_OPTS
="-Ac -q30m -L sm-cm"
11 stat_busy
"Starting sendmail"
13 /usr
/bin
/newaliases
> /dev
/null
2>&1
14 (cd /var
/spool
/mqueue
&& rm -f xf
*)
15 /usr
/sbin
/sendmail
${SENDMAIL_OPTS} > /dev
/null
2>&1 \
16 && /usr
/sbin
/sendmail
${CLIENTMQUEUE_OPTS} > /dev
/null
2>&1
26 stat_busy
"Stopping sendmail"
28 kill $
(head -n 1 /var
/run
/sendmail.pid
) \
29 $
(head -n 1 /var
/spool
/clientmqueue
/sm-client.pid
)
44 echo "usage: $0 {start|stop|restart}"