Quick and Dirty Upstart
I want to launch a service which has its own complex start/stop script at boot, and I want to launch it as a non-login user. So, I dig into upstart. The cookbook … is not a cookbook. So, here’s is my little recipe:
description "Run OpenFire Jabber Server"
start on runlevel 
stop on runlevel [!2345]
pre-start exec /opt/openfire/bin/openfire start
post-stop exec /opt/openfire/bin/openfire stop
All this does is, run /opt/openfire/bin/openfire start or /opt/openfire/bin/openfire stop at the appropriate time. Allegedly, this is suboptimal, but it works for me.
I tested with:
sudo start openfire
sudo stop openfire
sudo reboot # :)
Thank you, htorque on askubuntu!