]> git.pld-linux.org Git - packages/glibc.git/blobdiff - nscd.init
- ReleasE: 9
[packages/glibc.git] / nscd.init
index 2e359ab810fce5335cb73a3202b45362b8d83ab9..f85ff7a04dd0312ebdef4df3c8a00683841dac44 100644 (file)
--- a/nscd.init
+++ b/nscd.init
@@ -21,7 +21,7 @@
 # Get sysconfig
 [ -f /etc/sysconfig/nscd ] && . /etc/sysconfig/nscd
 
-
+RETVAL=0
 # See how we were called.
 case "$1" in
   start)
@@ -32,7 +32,6 @@ case "$1" in
                [ $RETVAL -eq 0 ] && touch /var/lock/subsys/nscd
        else
                msg_already_running "Name Switch Cache Daemon"
-               exit 1
        fi
        ;;
   stop)
@@ -44,20 +43,20 @@ case "$1" in
                ok
        else
                msg_not_running "Name Switch Cache Daemon"
-               exit 1
        fi      
        ;;
   status)
        status nscd
+       exit $?
        ;;
-  restart|reload)
+  restart|force-reload)
        $0 stop
        $0 start
+       exit $?
        ;;
   *)
-       msg_usage "$0 {start|stop|restart|reload|status}"
-       exit 1
-       ;;
+       msg_usage "$0 {start|stop|restart|force-reload|status}"
+       exit 3
 esac
 
 exit $RETVAL
This page took 0.107047 seconds and 4 git commands to generate.