Created
May 23, 2013 18:31
-
-
Save nstielau/5638327 to your computer and use it in GitHub Desktop.
Coffeescript zero exit status snippet
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
# For some reason, coffee appears to exit with | |
# non-zero status (1) when it recieves a SIGTERM | |
# by default. This doesn't play nice with process | |
# managers like systemd. This simple two-liner | |
# will allow your coffee scripts to exit cleanly. | |
process.on 'SIGTERM', -> | |
process.exit() |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment