[plug] starting a service automatically in Debian

Pabs pabs at perthimc.asn.au
Mon Dec 22 19:30:21 WST 2003


On Mon, 22 Dec 2003, Jon  Miller wrote:

> I need to start a script automatically in Debian and i know in RH it was rc.local  or using chkconfig that could be used.  What if available is the appropiate file or way of having a script run automatically on bootup?

place your script in /etc/init.d then run the update-rc.d program like so

update-rc.d somescript defaults

Add a -n in there before somescript to see what it would do, but don't
perform any actions.

You can put the script only in certain runlevels and stuff too, but see
man update-rc.d for that.

Bye,
Pabs



More information about the plug mailing list