]> git.pld-linux.org Git - packages/aspseek.git/commitdiff
- LSB compliance
authorankry <ankry@pld-linux.org>
Sat, 17 May 2003 21:03:35 +0000 (21:03 +0000)
committercvs2git <feedback@pld-linux.org>
Sun, 24 Jun 2012 12:13:13 +0000 (12:13 +0000)
Changed files:
    aspseek.init -> 1.3

aspseek.init

index b5641fe0bd2ae3c5cf537f5889a13b182f69fbbc..a7284c8e3928238fa6445a743c758878e6b46e5a 100644 (file)
@@ -15,6 +15,7 @@
 # Get service config
 [ -f /etc/sysconfig/aspseek ] && . /etc/sysconfig/aspseek
 
+RETVAL=0
 # See how we were called.
 case "$1" in
   start)
@@ -26,7 +27,6 @@ case "$1" in
                [ $RETVAL -eq 0 ] && touch /var/lock/subsys/aspseek
        else
                msg_already_running "aspseek searchd"
-               exit 1
        fi
        ;;
   stop)
@@ -37,20 +37,20 @@ case "$1" in
                 rm -f /var/lock/subsys/aspseek
         else
                msg_not_running "aspseek searchd"
-               exit 1
        fi
        ;;
   status)
        status aspseek
        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
 
This page took 0.082536 seconds and 4 git commands to generate.