Skip to content

Instantly share code, notes, and snippets.

@lifuzu
Created August 22, 2014 17:33
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 lifuzu/31af0dc859bf9bfb6da5 to your computer and use it in GitHub Desktop.
Save lifuzu/31af0dc859bf9bfb6da5 to your computer and use it in GitHub Desktop.
Upstart gollum configure file
# gollum
#
# Installation, please refer to: http://lifuzu.com/, then search 'gollum'
#
description "An Upstart task to make sure that my gollum server is always running"
author "Richard Lee <lifuzu@gmail.com>"
version "1.0"
start on startup
stop on shutdown
respawn
respawn limit 10 5
umask 022
env GOLLUM_WRAPPER_DIR="/home/rlee/.rvm/wrappers/mygollum"
env REPOSITORY_DIR="/home/rlee/repos/gollum"
env USER=rlee
env GROUP=rlee
env LOG="/var/log/ruby-gollum.log"
script
exec start-stop-daemon --exec $GOLLUM_WRAPPER_DIR/gollum --chuid $USER:$GROUP --start -- $REPOSITORY_DIR >> $LOG
end script
pre-stop script
exec start-stop-daemon --exec $GOLLUM_WRAPPER_DIR/gollum --chuid $USER:$GROUP --stop -- $REPOSITORY_DIR >> $LOG
end script
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment