Skip to content

Instantly share code, notes, and snippets.

@leon
Created May 9, 2012 11:45

Revisions

  1. leon created this gist May 9, 2012.
    22 changes: 22 additions & 0 deletions gollum.conf
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,22 @@
    #
    # 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 <[email protected]>"
    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