]> git.pld-linux.org Git - packages/VirtualBox.git/commitdiff
- notes
authorElan Ruusamäe <glen@pld-linux.org>
Sat, 22 Sep 2007 09:57:00 +0000 (09:57 +0000)
committercvs2git <feedback@pld-linux.org>
Sun, 24 Jun 2012 12:13:13 +0000 (12:13 +0000)
Changed files:
    virtualbox.init -> 1.5

virtualbox.init

index 7936e76b32280de7dc795eeee72441776dcc5b85..d7558e055fc462fb9b9c8ae3a451d505fad4b27b 100644 (file)
 start() {
        # Check if the service is already running?
        if [ ! -f /var/lock/subsys/virtualbox ]; then
+               msg_starting virtualbox
+
                _modprobe single die vboxdrv
+               # XXX: patch udev/dev instead
                chown root:vbox /dev/vboxdrv
-               msg_starting virtualbox
+
                daemon --fork VBoxSVC
                RETVAL=$?
                [ $RETVAL -eq 0 ] && touch /var/lock/subsys/virtualbox
@@ -31,9 +34,12 @@ start() {
 
 stop() {
        if [ -f /var/lock/subsys/virtualbox ]; then
-               /sbin/rmmod vboxdrv >/dev/null 2>&1
                # Stop daemons.
                msg_stopping virtualbox
+
+               # NOTE: rmmod will wait if device is in use, so automatic rmmod probably not the best idea
+               /sbin/rmmod vboxdrv >/dev/null 2>&1
+
                killproc VBoxSVC
                rm -f /var/lock/subsys/virtualbox
        else
This page took 0.037516 seconds and 4 git commands to generate.