Run arbitrary commands at boot time?
Colin Watson
cjwatson at ubuntu.com
Fri Mar 10 00:04:28 GMT 2006
On Thu, Mar 09, 2006 at 04:42:40PM -0600, Rocco Stanzione wrote:
> Back in my Mandrake days we had a file, /etc/rc.local, where we could put
> arbitrary commands to be executed with root privileges at the end of the init
> stage, just before the login prompt or ?dm was presented. A *very*
> frequently asked question on irc is where to put a script or command to run
> like this, and there doesn't seem to be a very good answer.
Copy /etc/init.d/skeleton to a new file in /etc/init.d/, edit it to suit
your needs, and run update-rc.d to cause it to run whenever you want.
--
Colin Watson [cjwatson at ubuntu.com]
More information about the ubuntu-devel
mailing list