You are not logged in.
I would like to run a script when I start my computer. It needs to run as root and go something like this...
/etc/rc.d/moblock start
/etc/rc.d/moblock stop
/etc/rc.d/moblock start
The reason I need to do it like this is because moblock currently has a bug in which it will not work the first time it is loaded after powering on the system.
Offline
Put the commands in /etc/rc.local. They will get executed at boot time, after all the other services are started.
Last edited by peart (2008-02-18 04:57:36)
Offline
You'll probably also need to add something like "sleep 10" after the first "/etc/rc.d/moblock start" because it takes a while before moblock actually fails on the first run. Best thing to do, I think, would be to put all of this in a separate script and then execute that script from rc.local with a & after it (so that it runs in the background).
Offline