Skip to content

Instantly share code, notes, and snippets.

View masatomo's full-sized avatar

Masatomo Nakano masatomo

View GitHub Profile
#!/bin/sh
# resque wrapper for monit
# see also http://mmonit.com/wiki/Monit/FAQ#pidfile
usage()
{
echo "usage: ${0} {start|stop} <any_process_keyword>"
exit 1
}
worker_processes 2;
events {
worker_connections 1024;
}
http {
include mime.types;
default_type application/octet-stream;