Created
December 13, 2013 03:49
-
-
Save skeggse/7939519 to your computer and use it in GitHub Desktop.
Upstart apparently not working logically
This file contains hidden or 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
script | |
VALUE="PONG" | |
echo "START" >> /var/log/stupid-test.log | |
if [ "$VALUE" == "PONG" ]; then | |
echo "GOOD PONG" >> /var/log/stupid-test.log | |
fi | |
if [ "$VALUE" != "PONG" ]; then | |
echo "BAD PONG" >> /var/log/stupid-test.log | |
fi | |
if [ "$VALUE" == "PING" ]; then | |
echo "BAD PING" >> /var/log/stupid-test.log | |
fi | |
if [ "$VALUE" != "PING" ]; then | |
echo "GOOD PING" >> /var/log/stupid-test.log | |
fi | |
echo >> /var/log/stupid-test.log | |
end script |
This file contains hidden or 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
START | |
GOOD PING |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment