Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Start on Boot and/or daemonize #295

jnbek opened this issue May 5, 2012 · 4 comments

Start on Boot and/or daemonize #295

jnbek opened this issue May 5, 2012 · 4 comments


Copy link

jnbek commented May 5, 2012

Great work and an awesome wiki, few questions. I am running gitit on FreeBSD installed from ports, I don't see an rc.d script and there doesn't seem to be an option to run as a daemon. What's the ETA on getting a daemon option available? Getting an rc.d script for FreeBSD as well as an init.d for Linux would be the icing on the cake for a sweet piece of wiki goodness.

Copy link

sukima commented Aug 17, 2012

+1 seems promising.

Copy link

Is this a duplicate of #198

Copy link

An upstart entry for gitit is extremely simple to achieve (I realise this doesn't address the FreeBSD rc.d question, but it does fulfil this need for systems running upstart, such as ubuntu) … for example:

# gitit - a wiki backed by a git, darcs, or mercurial filestore
# Pages and uploaded files can be modified either directly via the VCS’s
# command-line tools or through the wiki’s web interface. Pandoc is used
# for markup processing, so pages may be written in (extended) markdown,
# reStructuredText, LaTeX, HTML, or literate Haskell, and exported in
# ten different formats, including LaTeX, ConTeXt, DocBook, RTF,
# OpenOffice ODT, and MediaWiki markup.

description "gitit - a wiki backed by a git, darcs, or mercurial filestore"

start on runlevel [2345]
stop on runlevel [!2345]

chdir /srv/gitit
exec /usr/bin/gitit -f /etc/gitit.conf

Copy link

mdreier commented Sep 1, 2016

I created an init script for my gitit instance, which I designed to be easily usable to run multiple wikis. Please find it attached here.

It expects configuration files in /etc/gitit named NNN.config, where NNN is a configuration key specified in the init script. The actual wiki files are stored under /srv/wiki/NNN, and all references to the folders have been changed to absolute paths in the configuration file.

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

No branches or pull requests

5 participants