SOURCES: VirtualBox-vboxnetflt.init - added try-restart, force-reload (requ...
qboosh
qboosh at pld-linux.org
Thu Dec 25 09:08:36 CET 2008
Author: qboosh Date: Thu Dec 25 08:08:36 2008 GMT
Module: SOURCES Tag: HEAD
---- Log message:
- added try-restart, force-reload (required by LSB)
---- Files affected:
SOURCES:
VirtualBox-vboxnetflt.init (1.1 -> 1.2)
---- Diffs:
================================================================
Index: SOURCES/VirtualBox-vboxnetflt.init
diff -u SOURCES/VirtualBox-vboxnetflt.init:1.1 SOURCES/VirtualBox-vboxnetflt.init:1.2
--- SOURCES/VirtualBox-vboxnetflt.init:1.1 Fri Dec 19 15:29:07 2008
+++ SOURCES/VirtualBox-vboxnetflt.init Thu Dec 25 09:08:30 2008
@@ -32,6 +32,15 @@
rm -f /var/lock/subsys/vboxnetflt
}
+condrestart() {
+ if [ -f /var/lock/subsys/vboxnetflt ]; then
+ stop
+ start
+ else
+ RETVAL=$1
+ fi
+}
+
RETVAL=0
# See how we were called.
case "$1" in
@@ -45,6 +54,12 @@
stop
start
;;
+ try-restart)
+ condrestart 0
+ ;;
+ force-reload)
+ condrestart 7
+ ;;
status)
if ! is_module $VBOX_MODULE; then
echo "$VBOX_MODULE module is loaded"
@@ -54,7 +69,7 @@
fi
;;
*)
- msg_usage "$0 {start|stop|restart|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/VirtualBox-vboxnetflt.init?r1=1.1&r2=1.2&f=u
More information about the pld-cvs-commit
mailing list