RSS feed

Adding startup script to run levels

August 17th, 2009 | Posted in Blog, Debian | No Comments

Place the startup script in /etc/init.d/ then use update-rc.d to make it start on bootup with the following;

update-rc.d myscript defaults

The option “defaults” puts a symlink to start myscript on run levels 2, 3, 4 and 5 and a symlink in 0, 1 and 6 to stop myscript on shutdown/reboot.



No Comments to “Adding startup script to run levels”

There are no comments yet, add one below.


Leave a Comment






Categories