summaryrefslogtreecommitdiffstats
path: root/www-apps/loggerhead/files
diff options
context:
space:
mode:
Diffstat (limited to 'www-apps/loggerhead/files')
-rw-r--r--www-apps/loggerhead/files/loggerhead.confd3
-rw-r--r--www-apps/loggerhead/files/loggerhead.init27
2 files changed, 30 insertions, 0 deletions
diff --git a/www-apps/loggerhead/files/loggerhead.confd b/www-apps/loggerhead/files/loggerhead.confd
new file mode 100644
index 0000000..9665bf3
--- /dev/null
+++ b/www-apps/loggerhead/files/loggerhead.confd
@@ -0,0 +1,3 @@
+
+# Additional options for Loggerhead start
+LOGGERHEAD_OPTS="/var/bzr"
diff --git a/www-apps/loggerhead/files/loggerhead.init b/www-apps/loggerhead/files/loggerhead.init
new file mode 100644
index 0000000..2eceefd
--- /dev/null
+++ b/www-apps/loggerhead/files/loggerhead.init
@@ -0,0 +1,27 @@
+#!/sbin/runscript
+# Copyright 1999-2009 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: $
+
+PIDFILE=/var/run/loggerhead.pid
+LOGDIR=/var/log/loggerhead
+
+depend() {
+ need net
+}
+
+start() {
+ ebegin "Starting loggerhead"
+ start-stop-daemon --start --quiet --background \
+ --make-pidfile --pidfile ${PIDFILE} \
+ --exec /usr/bin/serve-branches -- --log-folder=${LOGDIR} \
+ ${LOGGERHEAD_OPTS}
+ eend $?
+}
+
+stop() {
+ ebegin "Stopping loggerhead"
+ start-stop-daemon --stop --quiet \
+ --pidfile ${PIDFILE}
+ eend $?
+}