I'm creating an upstart script to execute a python program I've written. When the service is starting I want to echo
starting service - script.py... and echo the process id of the program once started.
Likewise I want to echo
stopping service - script.py... when it is being stopped.
I have this so far (remember I'm new to this)...
#Name: script.conf description "An upstart config to run ~/applications/systems/script.py as an OS service." author "Corey F. - 12/2011" pre-start script echo 'starting service - script.py...' end script post-stop script echo 'stopped service - script.py...' end script start on runlevel  stop on runlevel [!2534] exec /home/lv_admin/applications/systems/script.py respawn
I think I need the command
2534 status to get the processid and last known state of the service (as explained here: http://upstart.ubuntu.com/getting-started.html ) but I'm not sure where to put it...
Also, how would I log upstart event problems to a specific file during this execution of this script.conf upstart file? I need to know if upstart has issues starting the process.