Debian chkconfig

On Debian-based systems adding a script to runlevels is accomplished with the following (assuming you have the script in /etc/init.d):

update-rc.d -f myservicename start 80 2 3 4 5 . stop 30 0 1 6 .

The priority (80 for start and 30 for
stop) is set and the runlevels (starting in 2 3 4 5 and stopping in 0 1 6) in which the script will be executed.
To remove it from the runlevels :

update-rc.d -f myservicename remove

Leave a Reply

  • (will not be published)

XHTML: You can use these tags: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <s> <strike> <strong>