Changed files:
postfix.init -> 1.14
# See how we were called.
case "$1" in
start)
# See how we were called.
case "$1" in
start)
ok
touch /var/lock/subsys/postfix
else
ok
touch /var/lock/subsys/postfix
else
fail
echo "$MSG"
fi
else
msg_already_running Postfix
fail
echo "$MSG"
fi
else
msg_already_running Postfix
msg_stopping Postfix
busy
MSG="`/usr/sbin/postfix stop 2>&1`"
msg_stopping Postfix
busy
MSG="`/usr/sbin/postfix stop 2>&1`"
- RETVAL=$?
- if [ $RETVAL -eq 0 ]; then
rm -f /var/lock/subsys/postfix
else
msg_not_running Postfix
rm -f /var/lock/subsys/postfix
else
msg_not_running Postfix
fi
;;
restart)
$0 stop
$0 start
fi
;;
restart)
$0 stop
$0 start
if [ -f /var/lock/subsys/postfix ]; then
msg_reloading Postfix
busy
/usr/sbin/postfix reload
RETVAL=$?
if [ -f /var/lock/subsys/postfix ]; then
msg_reloading Postfix
busy
/usr/sbin/postfix reload
RETVAL=$?
+ [ $RETVAL -ne 0 ] && RETVAL=7
[ $RETVAL -eq 0 ] && ok || died
else
[ $RETVAL -eq 0 ] && ok || died
else
- msg_not_running Postfix
- exit 1
+ msg_not_running Postfix >&2
+ exit 7
/usr/bin/newaliases
;;
*)
/usr/bin/newaliases
;;
*)
- msg_usage "$0 {start|stop|restart|reload|rebuilddb|status}"
- exit 1
+ msg_usage "$0 {start|stop|restart|reload|force-reload|rebuilddb|status}"
+ exit 3