Skip to content

Instantly share code, notes, and snippets.

View Jamie0's full-sized avatar
🤠

Jamie Woods Jamie0

🤠
View GitHub Profile
@Jamie0
Jamie0 / rotter.rb
Created April 7, 2016 13:28
(Insanity Radio) Ruby script to monitor Rotter, restart it if it dies, and ensure that is always writing output.
#!/usr/bin/env ruby
# Super simple daemon to watch Rotter and ensure it doesn't crash
$config = {
:path => "/var/www/",
:timeout => 5,
:log => "/dev/null"
:pid => "/run/insanity-rotter.pid" }