Reference link: http://askubuntu.com/questions/335242/how-to-install-an-init-d-script-in-ubuntu For example, to create a new script "vncserver" sudo editor /etc/init.d/vncserver Then enter the shell script (e.g., define start, stop, status, etc. check out one example inside that folder...). Afterwards, make sure that you make the script executable after creation. sudo chmod +x /etc/init.d/vncserver Now insert the service into the start-up system … Continue reading How to install an init.d script in Ubuntu?
run at boot
What is the file /etc/rc.local for?
Linux File Reference: /etc/rc.local The /etc/rc.local file is common to major Linux distributions. This file contains BASH commands which will be run after run-level specific commands whenever the system is booted. In a VPS environment, /etc/rc.local is commonly used to store the hostname <SERVER_HOSTNAME> command (where <SERVER_HOSTNAME> is the intended hostname for the VPS) to … Continue reading What is the file /etc/rc.local for?