[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: Startup scripts



-----BEGIN PGP SIGNED MESSAGE-----

On Sun, 10 Oct 1999, Salman Ahmed wrote:

> Here is another simple question that I cannot figure out. I want a program
> to be started up at boot time alongwith all the other daemons.
> 
> Which startup file should I modify for this ?

You should create a startup script in /etc/init.d, either named after your
daemon or named after the service it provides. In either case, it might be
wise to prefix or suffix "local" to help prevent any Debian packages from
overwriting it. /etc/init.d/skeleton can serve as a good template.

You'd then use the update-rc.d command it insert symlinks in the proper
runlevels. Since you seem to want it running in any runlevel, "update-rc.d
<init.d_filename> defaults" should do it (where <init.d_filename> is the
filename from the paragraph above). See the manpage for more info.


- -- 
  finger for PGP public key.

-----BEGIN PGP SIGNATURE-----
Version: 2.6.3ia
Charset: noconv

iQCVAwUBOAFZrb7M/9WKZLW5AQGmgAQAltQ9fDjHpubOlhLwxLx7hiO7qM/hDOFg
iLSe5cgotYaBO8ETK07Ffhi3lQFKYdZelXOfqeJpuyA3ZihiLn9aNtaM3DBL++W4
TgAtFIFTYJUMzg3HJipg2Rhkwcv+qPPW/jpvtkb+e8Vxe/5OZOrISyJ+GHHrXKTL
2DcO/T4K1+s=
=hDth
-----END PGP SIGNATURE-----


Reply to: