In a boot script, it's always a good idea to give the full path to any binary you want to run. Cron particularly is very persnickety about this... the scripts will simply fail and not tell you anything about why.
Init scripts run in much the same manner, where they don't have a full login session, so many of the environment variables you have from a ssh session are not set (e.g. PATH). Just a thought... Rubin On Tue, 2009-07-28 at 11:05 -0400, Ken D'Ambrosio wrote: > Hey, all. Running Ubuntu 9.10 (alpha) at work, and I want VirtualBox to > start up automagically on boot. So I threw > > modprobe vboxdrv > modprobe vboxnetflt > /usr/bin/VBoxHeadless --startvm XP > > into my /etc/rc.local file. I rebooted. Virtualbox didn't start up. I > did an "lsmod", and lo, neither of the modules had loaded. So, as root, I > executed /etc/rc.local, and got: > > r...@bree:/etc# ./rc.local > FATAL: Error inserting vboxdrv > (/lib/modules/2.6.31-3-generic/updates/dkms/vboxdrv.ko): Invalid argument > > > So then I cut-and-pasted the contents of the file into the *same root > session*, and they modprobe'd like a champ. > > Any insights that might prevent my further decline into senility will be > graciously accepted. > > -Ken > > -- Rubin Bennett rbTechnologies, LLC 80 Carleton Boulevard East Montpelier, VT 05651 (802)223-4448 http://thatitguy.com "Think for yourselves and let others enjoy the privilege to do so too." Voltaire, Essay on Tolerance French author, humanist, rationalist, & satirist (1694 - 1778)
