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

Open
jnbek opened this Issue May 5, 2012 · 4 comments

Comments

Projects
None yet
5 participants
@jnbek
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.

@sukima

This comment has been minimized.

Copy link

sukima commented Aug 17, 2012

@heyakyra

This comment has been minimized.

Copy link

heyakyra commented Mar 13, 2013

Is this a duplicate of #198

@gallafent

This comment has been minimized.

Copy link

gallafent commented Feb 21, 2014

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
@mdreier

This comment has been minimized.

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
You can’t perform that action at this time.