Skip to content

Instantly share code, notes, and snippets.

@ivarprudnikov
Created March 8, 2013 00:29
Show Gist options
  • Save ivarprudnikov/5113216 to your computer and use it in GitHub Desktop.
Save ivarprudnikov/5113216 to your computer and use it in GitHub Desktop.
upstart script for debugging events
# /etc/init/debug.conf
start on ( starting JOB!=debug \
or started JOB!=debug \
or stopping JOB!=debug \
or stopped JOB!=debug )
script
exec 1>>/tmp/upstart_debug_log.file
echo -n "$UPSTART_JOB/$UPSTART_INSTANCE ($0):$$:`date`:"
echo "Job $JOB/$INSTANCE $UPSTART_EVENTS. Environment was:"
env
echo
end scripts
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment