#
# chkconfig: 345 80 30
#
-# description: Postfix is a Mail Transport Agent, which is the program
+# description: Postfix is a Mail Transport Agent, which is the program \
# that moves mail from one machine to another.
# Check that networking is up.
if is_yes "${NETWORKING}"; then
- if [ ! -f /var/lock/subsys/network -a != stop -a != status ]; then
+ if [ ! -f /var/lock/subsys/network -a "$1" != stop -a "$1" != status ]; then
msg_network_down Postfix
exit 1
fi
reload|force-reload)
if [ -f /var/lock/subsys/postfix ]; then
msg_reloading Postfix
- busy
- /usr/sbin/postfix reload
+ daemon /usr/sbin/postfix reload
RETVAL=$?
[ $RETVAL -ne 0 ] && RETVAL=7
- [ $RETVAL -eq 0 ] && ok || died
else
- msg_not_running Postfix >&2
+ msg_not_running Postfix
exit 7
fi
;;