Skip to content

Instantly share code, notes, and snippets.

@leon
Created May 9, 2012 11:45
Show Gist options
  • Star 7 You must be signed in to star a gist
  • Fork 3 You must be signed in to fork a gist
  • Save leon/2643936 to your computer and use it in GitHub Desktop.
Save leon/2643936 to your computer and use it in GitHub Desktop.
Gollum Upstart script
#
# Install:
# install https://github.com/github/gollum
# in /srv/wiki do a git init
# add this script to /etc/init/gollum.conf
#
# Usage:
# start/stop/restart gollum
#
description "Gollum Wiki"
author "Leon Radley <leon@radley.se>"
version "1.0"
start on (filesystem and net-device-up IFACE=lo) or runlevel [2345]
stop on runlevel [!2345]
respawn
respawn limit 10 5
umask 022
exec start-stop-daemon --exec /usr/bin/gollum --chuid wiki:www-data --start -- /srv/wiki
@mikehaertl
Copy link

@leon
Nice one, thanks!

Do you happen to know, how to improve the script in order to log the output that gollum ususally echoes on the console?

@estiedi
Copy link

estiedi commented Sep 1, 2014

Very useful! Thanks.

@yuzhangbit
Copy link

Hello. What does "--chuid wiki:www-data --start -- /srv/wiki" mean?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment