Changed files:
VirtualBox-vboxnetflt.init -> 1.2
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
stop
start
;;
+ try-restart)
+ condrestart 0
+ ;;
+ force-reload)
+ condrestart 7
+ ;;
status)
if ! is_module $VBOX_MODULE; then
echo "$VBOX_MODULE module is loaded"
fi
;;
*)
- msg_usage "$0 {start|stop|restart|status}"
+ msg_usage "$0 {start|stop|restart|try-restart|force-reload|status}"
exit 3
esac