]> git.pld-linux.org Git - packages/amavisd.git/blobdiff - amavisd.init
-taken & changed, orginally from:
[packages/amavisd.git] / amavisd.init
index c9e7bcaec3369c9f36a16f3be23bc33a616d50c4..742473331899b6a01babfd518510784d722e625c 100755 (executable)
@@ -17,7 +17,7 @@
 # Get service config
 [ -f /etc/sysconfig/amavisd ] && . /etc/sysconfig/amavisd
 
-
+RETVAL=0
 # See how we were called.
 case "$1" in
   start)
@@ -27,8 +27,7 @@ case "$1" in
                daemon 'su -s /bin/sh amavis -c "/bin/nice /usr/sbin/amavisd"'
                touch /var/lock/subsys/amavisd
        else
-               msg_Already_Running Amavisd
-               exit 1
+               msg_already_running Amavisd
        fi
        ;;
   stop)
@@ -38,20 +37,21 @@ case "$1" in
                killproc amavisd;
                 rm -f /var/lock/subsys/amavisd >/dev/null 2>&1
         else
-                msg_Not_Running Amavisd
-                exit 1
+                msg_not_running Amavisd
         fi
        ;;
   status)
        status amavisd
+       exit $?
        ;;
-  restart)
+  restart|force-reload)
        $0 stop
        $0 start
+       exit $?
        ;;
   *)
-       msg_usage "$0 {start|stop|status|restart}"
-       exit 1
+       msg_usage "$0 {start|stop|restart|force-reload|status}"
+       exit 3
 esac
 
 exit $RETVAL
This page took 0.072761 seconds and 4 git commands to generate.