Skip to content

Instantly share code, notes, and snippets.

@nickyp
Created July 17, 2013 14:48

Revisions

  1. nickyp created this gist Jul 17, 2013.
    2 changes: 2 additions & 0 deletions killswitch.rb
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,2 @@
    Process.kill "SIGUSR1", $$ # kills Torquebox & Passenger
    exit(false) # only kills Webbrick