Skip to content

Instantly share code, notes, and snippets.

@bascht
Created October 26, 2017 14:43
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save bascht/2b0c6cff9393dc636bcfe5f82b1a85bf to your computer and use it in GitHub Desktop.
Save bascht/2b0c6cff9393dc636bcfe5f82b1a85bf to your computer and use it in GitHub Desktop.
#!/usr/bin/env ruby
Signal.trap("INT") { puts "OMG PANIC"; exit }
Signal.trap("TERM") { puts "Shutting down properly and deleting my pidfile."; exit }
while(true)
puts "Didumm."
sleep 5
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment