]> git.pld-linux.org Git - packages/VirtualBox-bin.git/commitdiff
- added try-restart, force-reload (required by LSB) auto/th/VirtualBox-2_1_0-2
authorJakub Bogusz <qboosh@pld-linux.org>
Thu, 25 Dec 2008 08:08:30 +0000 (08:08 +0000)
committercvs2git <feedback@pld-linux.org>
Sun, 24 Jun 2012 12:13:13 +0000 (12:13 +0000)
Changed files:
    VirtualBox-vboxnetflt.init -> 1.2

VirtualBox-vboxnetflt.init

index d4e70507b357febbe29d37109dc6a3565a10f68b..f17f0077dd42a244c768c5c10ce6b7b857f24096 100644 (file)
@@ -32,6 +32,15 @@ stop() {
        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 @@ case "$1" in
        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 @@ case "$1" in
        fi
        ;;
   *)
-       msg_usage "$0 {start|stop|restart|status}"
+       msg_usage "$0 {start|stop|restart|try-restart|force-reload|status}"
        exit 3
 esac
 
This page took 0.134574 seconds and 4 git commands to generate.