Created
August 28, 2019 12:01
-
-
Save miquelbar/1cdb245657f4ecc74608589b618804ee to your computer and use it in GitHub Desktop.
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
#!/bin/sh | |
_sigterm() { | |
echo "Recieved SIGTERM" | |
exit 1 | |
} | |
_sigint() { | |
echo "Recieved SIGINT" | |
exit 1 | |
} | |
trap _sigterm TERM | |
trap _sigint INT | |
while true; do | |
echo "Sleeping" | |
sleep 1 | |
done; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment