makemap -v hash /etc/mail/$i < /etc/mail/$i >/dev/null 2>&1
[ $RETVAL -eq 0 ] && RETVAL=$?
fi
- done
+ done
[ $RETVAL -eq 0 ] && ok || fail
msg_starting sendmail
daemon /usr/sbin/sendmail $([ "$DAEMON" = "yes" ] && echo -bd) \
$([ -n "$QUEUE" ] && echo -q$QUEUE) \
- $([ "$ENABLE_IPV6" = "yes" ] &&
+ $([ "$ENABLE_IPV6" = "yes" ] &&
echo -ODaemonPortOptions=Family=inet6 )
RETVAL=$?
[ $RETVAL -eq 0 ] && touch /var/lock/subsys/sendmail
fi
if [ ! -f /var/lock/subsys/sm-client ]; then
msg_starting sm-client
- touch /var/run/sm-client.pid
- chown smmsp:smmsp /var/run/sm-client.pid
daemon /usr/sbin/sendmail -L sm-msp-queue -Ac -q$SMQUEUE
RETVAL=$?
[ $RETVAL -eq 0 ] && touch /var/lock/subsys/sm-client
if [ -f /var/lock/subsys/sendmail ]; then
# Stop daemons.
msg_stopping sendmail
- killproc sendmail
- rm -f /var/lock/subsys/sendmail
+ killproc --pidfile sendmail.pid sendmail
+ RETVAL=$?
+ [ $RETVAL -eq 0 ] && rm -f /var/lock/subsys/sendmail
else
msg_not_running sendmail
fi
if [ -f /var/lock/subsys/sm-client ]; then
msg_stopping sm-client
- killproc sendmail
+ killproc --pidfile /var/spool/clientmqueue/sm-client.pid sendmail
RETVAL=$?
- [ $RETVAL -eq 0 ] && rm -f /var/run/sm-client.pid
[ $RETVAL -eq 0 ] && rm -f /var/lock/subsys/sm-client
else
msg_not_running sm-client