/etc/init.d

C de-Avillez hggdh2 at ubuntu.com
Thu Jan 6 21:11:27 UTC 2011


On 01/06/2011 06:57 AM, stan wrote:
> A quick question. On 10.04, if I add a package that is _not_ from the
> Ubuntu respoitries, can I just put it's startup script in /etc/init.d, and
> expect thisngs to get started up on system boot? Or is there more I need to
> do/
> 
> For instance, what control what runleves it is satrted and stoped at?
> 
> 

You can put the init script under /etc/init.d/ (or convert it to
upstart ;-).

Then use update-rc.d to set the run levels you want it to
automagically start. Usually the defaults are appropriate:

sudo update-rc.d <scriptName> defaults

For more details, please see the man page on update-rc.d.

Cheers,

..C..

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 900 bytes
Desc: OpenPGP digital signature
URL: <https://lists.ubuntu.com/archives/ubuntu-users/attachments/20110106/2a591ce0/attachment.sig>


More information about the ubuntu-users mailing list