I wrote a simple upstart script that kicks off a python program, I have it saved as vgpusher.conf
.
It doesn't start automatically, but if I run sudo start vgpusher
it starts and runs just fine.
The code is simple:
description "vgpush"
start on runlevel [2345]
stop on runlevel [!2345]
script
cd /home/computer/
python pusher.py
end script
I placed the script in /etc/init
. Other than that, I have done no configuration.
The machine is running Ubuntu 10.04 Server.
Do I need to take an extra step for the service to start on startup?