Created
March 8, 2013 00:29
-
-
Save ivarprudnikov/5113216 to your computer and use it in GitHub Desktop.
upstart script for debugging events
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# /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