Created
November 30, 2015 22:39
-
-
Save mpalmer/9ba0d8df911ca9d07577 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
FROM ubuntu:14.04 | |
ADD hup-me-harder sbin/hup-me-harder | |
ENTRYPOINT ["/sbin/hup-me-harder"] |
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/bash | |
set -ex | |
trap >&2 | |
trap "echo HUP" SIGHUP | |
trap "echo TERM" TERM | |
trap "echo INT" INT | |
trap "echo USR1" USR1 | |
trap "echo USR2" USR2 | |
trap '' HUP | |
trap 'echo WTF' USR1 HUP USR2 | |
trap >&2 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment