I am trying to get a simple python code that I have to run in the background at startup, and stay running.
The best option that I have found so far is to use Upstart. I wrote the following
.conf file in the
/etc/init/ folder and the service comes up with the
initctl list command however when I
start the service and then check the list again it is not running. The
.conf is below.
If somebody could help me that would be much appreciated
start on runlevel  stop on runlevel  respawn script exec python /some/directory/python_code.py end script