Introduction

To launch daemons at boot time, you need to act differently depending on the distribution. But before starting, the script must already exist in /etc/init.d.

Debian

Here’s the command:

1
update-rc.d

You can test with the -n argument:

1
update-rc.d -n name_of_service defaults

Once you’re ready, execute:

1
update-rc.d name_of_service defaults

And if you want to remove it:

1
update-rc.d -f name_of_service remove

Red Hat

Run this command:

1
ntsysv

A menu will open. It’s up to you to make your choice.

Gentoo

For Gentoo, here’s the procedure:

1
rc-update add name_of_service default

Last updated 05 May 2009, 07:11 CEST. history