How to start a shell script with linux startup – ubuntu

May 19, 2012 Iyngaran Iyathurai 0

Got a shell script that you want automatically run at bootup on Ubuntu Server Edition? Here’s how: Create a script in the “/etc/init.d/” directory. Make the script executable

Make the script start at bootup

Note: the option “defaults” puts a link to start your script in runlevels 2, 3, 4 and 5, and puts a link to stop in runlevels 0, 1 and 6.