]> git.pld-linux.org Git - packages/dbus.git/commitdiff
- added try-restart action
authorJakub Bogusz <qboosh@pld-linux.org>
Wed, 23 Jan 2008 19:44:09 +0000 (19:44 +0000)
committercvs2git <feedback@pld-linux.org>
Sun, 24 Jun 2012 12:13:13 +0000 (12:13 +0000)
- initialize RETVAL

Changed files:
    messagebus.init -> 1.10

messagebus.init

index d877103755cfc0dd41c61c4d06a1536d253aa4d4..5104b918dd5771927e0e4ea3aa9257946fcb9c5e 100644 (file)
@@ -50,6 +50,17 @@ stop() {
        fi
 }
 
+condrestart() {
+       if [ -f /var/lock/subsys/cpqarrayd ]; then
+               stop
+               start
+       else
+               msg_not_running cpqarrayd
+               RETVAL=$1
+       fi
+}
+
+RETVAL=0
 # See how we were called.
 case "$1" in
   start)
@@ -62,6 +73,9 @@ case "$1" in
        stop
        start
        ;;
+  try-restart)
+       condrestart 0
+       ;;
   reload|force-reload)
        if [ -f /var/lock/subsys/messagebus ]; then
                msg_reloading messagebus
@@ -77,7 +91,7 @@ case "$1" in
        RETVAL=$?
        ;;
   *)
-       msg_usage "$0 {start|stop|restart|reload|force-reload|status}"
+       msg_usage "$0 {start|stop|restart|try-restart|reload|force-reload|status}"
        exit 3
 esac
 
This page took 0.105104 seconds and 4 git commands to generate.