Sunday, December 28, 2008

Adding something to the startup scripts.

Just penning this down because I am afraid I'm quite likely to forget !

First off, create a script in /etc/init.d/ which you want to be executed at startup.

Next, use the update-rc.d command

update-rc.d [script-name] start [seq-num] [list-of-run-levels]
[seq-num] = 0 - 99
[list-of-run-levels] = separated by space, and terminated by "."

.

No comments: