Skip to content

Instantly share code, notes, and snippets.

@andmarios
Created November 27, 2012 03:45
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 andmarios/4152229 to your computer and use it in GitHub Desktop.
Save andmarios/4152229 to your computer and use it in GitHub Desktop.
Gollum wiki init script for Gentoo Linux
#!/sbin/runscript
# Gollum init script for Gentoo Linux
GOLLUM_BASE=/home/wiki/OurWiki
GOLLUM_USER=wiki
GOLLUM_USER_HOME=/home/wiki
depend() {
need net
}
start() {
ebegin "Starting Gollum"
start-stop-daemon --start \
--chdir "${GOLLUM_BASE}" \
--user "${GOLLUM_USER}" \
-m -p "${GOLLUM_USER_HOME}/gollum.pid" \
-b --exec gollum
eend $?
}
stop() {
ebegin "Stopping Gollum"
start-stop-daemon --stop \
--chdir "${GOLLUM_BASE}" \
--user "${GOLLUM_USER}" \
-p "${GOLLUM_USER_HOME}/gollum.pid"
eend $?
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment