[plug] debian startup scripts

Craig Ringer craig at postnewspapers.com.au
Tue Mar 29 18:47:21 WST 2005


Tim Bowden wrote:

>Hi all,
>
>Redhat has /etc/rc.d/rc.local, debian used to have /etc/rc.boot but it
>seems to be deprecated, but what is the 'preferred' way of running
>ad-hoc startup scripts in debian?
>
>Is running your own scripts in rc.n/ frowned at?  Does it cause
>upgrading problems? anything else?
>  
>

Add it to /etc/init.d/ and use update-rc.d to manage it, like any 
script. There is no requirement that init scripts be managed by the 
package management system; you can simply create one yourself if you like.

You should follow the basic format of a System V init script, but that's 
not much more than a case statement with clauses for start, stop, and 
restart.

--
Craig Ringer



More information about the plug mailing list