Run arbitrary commands at boot time?
Vincent Untz
vuntz at ubuntu.com
Fri Mar 10 18:13:18 GMT 2006
Le jeudi 09 mars 2006 à 18:57 -0600, Rocco Stanzione a écrit :
> On Thursday 09 March 2006 18:04, Colin Watson 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.
>
> Never noticed that file before. It looks like a good solution if I want to
> put an init script together with start and stop, assign it to the appropriate
> runlevels, etc., but often I simply want a single command to be executed at
> boot time, and I might not have the bash foo necessary to make a decent init
> script.
If the user doesn't know bash enough to do this, then he certainly
shouldn't edit an init script himself. He should use a software to do
it. Maybe adding some feature to gnome-system-tools would be enough?
Vincent
--
Les gens heureux ne sont pas pressés.
More information about the ubuntu-devel
mailing list