Created
October 26, 2017 14:43
-
-
Save bascht/2b0c6cff9393dc636bcfe5f82b1a85bf 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
#!/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