SOURCES: ism-cli.init - LSB 3.1 for try-restart and force-reload (...
glen
glen at pld-linux.org
Tue Nov 27 17:47:33 CET 2007
Author: glen Date: Tue Nov 27 16:47:33 2007 GMT
Module: SOURCES Tag: HEAD
---- Log message:
- LSB 3.1 for try-restart and force-reload (i hope i got it right from template.init)
---- Files affected:
SOURCES:
ism-cli.init (1.4 -> 1.5)
---- Diffs:
================================================================
Index: SOURCES/ism-cli.init
diff -u SOURCES/ism-cli.init:1.4 SOURCES/ism-cli.init:1.5
--- SOURCES/ism-cli.init:1.4 Tue Nov 27 17:41:49 2007
+++ SOURCES/ism-cli.init Tue Nov 27 17:47:28 2007
@@ -53,6 +53,18 @@
fi
}
+condrestart() {
+ if [ -f /var/lock/subsys/dpcproxy ]; then
+ stop
+ start
+ else
+ if [ $1 -ne 0 ]; then
+ msg_not_running dpcproxy
+ fi
+ RETVAL=$1
+ fi
+}
+
RETVAL=0
# See how we were called.
case "$1" in
@@ -62,16 +74,22 @@
stop)
stop
;;
- restart|force-reload)
+ restart)
stop
start
;;
+ try-restart)
+ condrestart 0
+ ;;
+ force-reload)
+ condrestart 7
+ ;;
status)
status dpcproxy
exit $?
;;
*)
- msg_usage "$0 {start|stop|restart|force-reload|status}"
+ msg_usage "$0 {start|stop|restart|try-restart|force-reload|status}"
exit 3
esac
================================================================
---- CVS-web:
http://cvs.pld-linux.org/cgi-bin/cvsweb.cgi/SOURCES/ism-cli.init?r1=1.4&r2=1.5&f=u
More information about the pld-cvs-commit
mailing list