Sunday, March 17, 2013

Run own script on Linux startup


Run own script on Linux startup
Environment: Ubuntu 12.04

Reference Link:
https://help.ubuntu.com/community/UbuntuBootupHowto


Make the script executable
#sudo chmod +x /etc/init.d/myscript.sh

Make the script run on startup
#sudo update-rc.d myscript.sh defaults 98 02

98 is the start sequence numbers
02 is stop sequence numbers

Both are numbers between 00 and 99
Specify how early or late a service is started or killed.

 

No comments:

Post a Comment