Skip to content

Instantly share code, notes, and snippets.

@mathieue
Created May 28, 2012 13:46
Show Gist options
  • Save mathieue/2819274 to your computer and use it in GitHub Desktop.
Save mathieue/2819274 to your computer and use it in GitHub Desktop.
Monit conf for bucky (statsd daemon)
#!/bin/bash
case $1 in
start)
echo $$ > /var/run/bucky.pid;
exec 2>&1 /usr/local/bin/bucky --disable-collectd --statsd-ip=192.168.0.1 /etc/bucky.py | logger -t bucky
;;
stop)
kill `cat /var/run/bucky.pid` ;;
*)
echo "usage: bucky {start|stop}" ;;
esac
exit 0
set daemon 120
set logfile syslog facility log_daemon
check process bucky with pidfile /var/run/bucky.pid
start program = "/etc/init.d/bucky start"
stop program = "/etc/init.d/bucky stop"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment