-
-
Save lifuzu/31af0dc859bf9bfb6da5 to your computer and use it in GitHub Desktop.
Upstart gollum configure file
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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