Configuring automatic startup (Ubuntu upstart)
Configuring automatic startup (Ubuntu upstart)
To control startup and persistent execution of processes (restarting them if they crash) Ubuntu uses a system called upstartupstart.
Setting up this system is rather simple. You need to create a file <servicename>.conf in /etc/init after which you can control the service with following commands: sudo start <servicename>, sudo stop <servicename>, sudo restart <servicename>.
Keep in mind that these processes (setup as they are) will run as root. One more thing: Log files for upstart are located in /var/log/upstart/<conf_filename>.log. You need root permission to view these files.
See http://litecoindeveloper.com/doku.php?id=tutorials:configuring_upstart