[plug] starting a service automatically in Debian
James Devenish
devenish at guild.uwa.edu.au
Mon Dec 22 19:44:12 WST 2003
In message <sfe74cc4.059 at mmtnetworks.com.au>
on Mon, Dec 22, 2003 at 07:57:39PM +0800, 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?
You can put your own startup script into a specific runlevel's directory
(e.g. name the file as /etc/rc2.d/S99myfile.sh for runlevel 2, the
normal runlevel under Debian). You can also install a package called
file-rc which handles these startup scripts via a configuration file
called /etc/runlevels.conf (which is a tad more like chkconfig). For
proper usage, you would create a startup script that understands both
'start' and 'stop'. You would then put the script into /etc/init.d and
use symlinks in the /etc/rc?.d directories (or use file-rc).
More information about the plug
mailing list