]> git.pld-linux.org Git - packages/postfix.git/blobdiff - postfix.init
- enable epoll on HEAD
[packages/postfix.git] / postfix.init
index b6cdca6728da998134f1869ff3e055d23ce07e38..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 ]; then
+       if [ ! -f /var/lock/subsys/network -a "$1" != stop -a "$1" != status ]; then
                msg_network_down Postfix
                exit 1
        fi
@@ -37,7 +37,7 @@ case "$1" in
                msg_starting Postfix
                busy
                MSG="`/usr/sbin/postfix start 2>&1`"
-               if [ "$?" = "0" ] ; then
+               if [ $? -eq 0 ]; then
                        ok
                        touch /var/lock/subsys/postfix
                else
@@ -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
        ;;
@@ -93,7 +91,7 @@ case "$1" in
        extra_db=$(ls -1 /etc/mail/*.db 2> /dev/null | grep -v aliases.db | sed -e 's#.db$##')
        for base in $standard_db $extra_db; do
                I=$(basename "$base")
-               if [ -f /etc/mail/$I ] ; then
+               if [ -f /etc/mail/$I ]; then
                        /usr/sbin/postmap hash:/etc/mail/$I < /etc/mail/$I
                fi
        done
This page took 0.090411 seconds and 4 git commands to generate.