Debian autostart

From snippet wiki
Jump to navigation Jump to search

To start a service on boot:

update-rc.d theservice defaults

That line adds the symlinks to start the /etc/init.d/theservice script for runlevels 0,1,2,3 and for shutting it down on runlevels 4,5,6.

To remove these links use that line:

update-rc.d theservice remove