Skip to content

Instantly share code, notes, and snippets.

@joejulian
Created June 11, 2015 20:16
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save joejulian/000e49315dfd6524e219 to your computer and use it in GitHub Desktop.
Save joejulian/000e49315dfd6524e219 to your computer and use it in GitHub Desktop.
# /etc/init/debug.conf
start on ( starting JOB!=debug \
or started JOB!=debug \
or stopping JOB!=debug \
or stopped JOB!=debug )
script
exec 1>>/var/log/upstart.log
echo -n "$UPSTART_JOB/$UPSTART_INSTANCE ($0):$$:`date`:"
echo "Job $JOB/$INSTANCE $UPSTART_EVENTS. Environment was:"
env
echo
end script
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment