Skip to content

Instantly share code, notes, and snippets.

@noniq
Last active August 29, 2015 14:16
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save noniq/efd7ca4547af9546af4f to your computer and use it in GitHub Desktop.
Save noniq/efd7ca4547af9546af4f to your computer and use it in GitHub Desktop.
Monit config for BotAsciiStats: /etc/monit/conf.d/botasciistats.cfg
check process botasciistats with pidfile /var/run/botasciistats.pid
start program = "/usr/bin/env PATH=/home/noniq/.rbenv/shims:/sbin:/usr/sbin:/bin:/usr/bin start-stop-daemon --start --pidfile /var/run/botasciistats.pid --chuid noniq --background --make-pidfile --startas /home/noniq/botasciistats/bin/run"
stop program = "/sbin/start-stop-daemon --stop --pidfile /var/run/botasciistats.pid"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment