Skip to content

Instantly share code, notes, and snippets.

@edymerchk
Created March 14, 2014 21:39
Show Gist options
  • Select an option

  • Save edymerchk/9557556 to your computer and use it in GitHub Desktop.

Select an option

Save edymerchk/9557556 to your computer and use it in GitHub Desktop.
File.write("server.pid", Process.pid)
trap("SIGINT") do
File.delete("server.pid")
exit
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment