Skip to content

Instantly share code, notes, and snippets.

@nstielau
Created May 23, 2013 18:31
Show Gist options
  • Save nstielau/5638327 to your computer and use it in GitHub Desktop.
Save nstielau/5638327 to your computer and use it in GitHub Desktop.
Coffeescript zero exit status snippet
# 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