Skip to content

Instantly share code, notes, and snippets.

@lifuzu
Forked from leon/gollum.conf
Created August 22, 2014 17:39
Show Gist options
  • Save lifuzu/038430773e44e359fa25 to your computer and use it in GitHub Desktop.
Save lifuzu/038430773e44e359fa25 to your computer and use it in GitHub Desktop.
#
# 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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment