]> git.pld-linux.org Git - packages/postfix.git/blobdiff - postfix.init
- enable epoll on HEAD
[packages/postfix.git] / postfix.init
index 611522fdd6283467cd578a58ca9752bedf099d57..10671edc7f84a05366fc0f25f22b123bc9c198b5 100644 (file)
@@ -5,7 +5,7 @@
 #
 # 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.
 
 
@@ -20,7 +20,7 @@
 
 # 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
@@ -74,13 +74,11 @@ case "$1" in
   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
        ;;
This page took 0.110361 seconds and 4 git commands to generate.