"vboxdrv stop" fails, if virtualbox is not running

Bug #152925 reported by Daniel Hahler
2
Affects Status Importance Assigned to Milestone
virtualbox-ose-modules (Ubuntu)
Fix Released
Undecided
Unassigned

Bug Description

The "stop" action for /etc/init.d/vboxdrv fails, if virtualbox-ose is not running, because "killall -q VBoxSVC" exits the script (it's "set -e").

$ LANG=C sudo dpkg -P virtualbox-ose-modules-2.6.22-14-generic
(Reading database ... 306374 files and directories currently installed.)
Removing virtualbox-ose-modules-2.6.22-14-generic ...
 * Stopping VirtualBox kernel module vboxdrv invoke-rc.d: initscript vboxdrv, action "stop" failed.
dpkg: error processing virtualbox-ose-modules-2.6.22-14-generic (--purge):
 subprocess pre-removal script returned error exit status 1
Errors were encountered while processing:
 virtualbox-ose-modules-2.6.22-14-generic

The fix is quite simple: just add "|| true" to the line.

Revision history for this message
Daniel Hahler (blueyed) wrote :
Revision history for this message
Steve Kowalik (stevenk) wrote :

virtualbox-ose-modules (5) gutsy; urgency=low

  * Remove stop from the init script - removing the module and killing
    virtualbox is bad for upgrades. (LP: #152925)

 -- Steve Kowalik <email address hidden> Mon, 15 Oct 2007 22:47:14 +1000

Changed in virtualbox-ose-modules:
status: New → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.