Last Updated: February 25, 2016
·
375
· rezigned

How to create auto-start script on Ubuntu

Let's say you want to create a script that will run every time when server
reboot.

  1. Create a script at /etc/init.d/awesome.sh
  2. Make it executable chmod +x /etc/init.d/awesome.sh
  3. Run update-rc.d awesome.sh defaults

Credits

http://embraceubuntu.com/2005/09/07/adding-a-startup-script-to-be-run-at-bootup/