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.
- Create a script at
/etc/init.d/awesome.sh
- Make it executable
chmod +x /etc/init.d/awesome.sh
- Run
update-rc.d awesome.sh defaults
Credits
http://embraceubuntu.com/2005/09/07/adding-a-startup-script-to-be-run-at-bootup/
Written by Rezigned
Related protips
Have a fresh tip? Share with Coderwall community!
Post
Post a tip
Related Tags
#ubuntu
Sponsored by #native_company# — Learn More
#native_title#
#native_desc#