SOURCES: messagebus.init - added try-restart action - initialize R...
qboosh
qboosh at pld-linux.org
Wed Jan 23 20:44:15 CET 2008
Author: qboosh Date: Wed Jan 23 19:44:15 2008 GMT
Module: SOURCES Tag: HEAD
---- Log message:
- added try-restart action
- initialize RETVAL
---- Files affected:
SOURCES:
messagebus.init (1.9 -> 1.10)
---- Diffs:
================================================================
Index: SOURCES/messagebus.init
diff -u SOURCES/messagebus.init:1.9 SOURCES/messagebus.init:1.10
--- SOURCES/messagebus.init:1.9 Sat Nov 4 20:30:12 2006
+++ SOURCES/messagebus.init Wed Jan 23 20:44:09 2008
@@ -50,6 +50,17 @@
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 @@
stop
start
;;
+ try-restart)
+ condrestart 0
+ ;;
reload|force-reload)
if [ -f /var/lock/subsys/messagebus ]; then
msg_reloading messagebus
@@ -77,7 +91,7 @@
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
================================================================
---- CVS-web:
http://cvs.pld-linux.org/cgi-bin/cvsweb.cgi/SOURCES/messagebus.init?r1=1.9&r2=1.10&f=u
More information about the pld-cvs-commit
mailing list