# hannahci - hannahci job file description "HannahCI continuous integration server" author "Philip Woods " # Stanzas # # Stanzas control when and how a process is started and stopped # See a list of stanzas here: http://upstart.ubuntu.com/wiki/Stanzas#respawn # When to start the service start on (local-filesystems and net-device-up IFACE!=lo) # When to stop the service stop on runlevel [!2345] # Automatically restart process if crashed respawn # Essentially lets upstart know the process will detach itself to the background expect fork # Run before process pre-start script [ -d /var/run/hannahci ] || mkdir -p /var/run/hannahci sudo -u hannahci /usr/bin/env hannahci end script # Start the process exec lanactl start