Skip to content

Instantly share code, notes, and snippets.

@hector
Created August 31, 2012 15:41
Show Gist options
  • Save hector/3554820 to your computer and use it in GitHub Desktop.
Save hector/3554820 to your computer and use it in GitHub Desktop.
God Upstart
description "God Process Monitoring"
author "Hector Parra <wizbcn@gmail.com>"
start on runlevel [2345]
stop on runlevel [!2345]
respawn # respawn the service if it dies
respawn limit 5 10 # stop respawning if it fails 5 times in 10 seconds
exec sudo god -D -c /etc/god/master.conf -l /var/log/god.log
# This is an upstart job for firing up God at system boot
# and respawning it if it dies
# This should be placed in: /etc/init/god.conf
#
# To use it with Rbenv: install God as the deployer user and
# edit /etc/sudoers (with $ sudo visudo) to change:
# Defaults secure_path="/home/deployer/.rbenv/shims:/home/deployer/.rbenv/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin"
#
# Tested on Ubuntu 12.04
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment