summaryrefslogtreecommitdiffstats
path: root/www-apps/loggerhead/files/loggerhead.init
diff options
context:
space:
mode:
Diffstat (limited to 'www-apps/loggerhead/files/loggerhead.init')
-rw-r--r--www-apps/loggerhead/files/loggerhead.init27
1 files changed, 27 insertions, 0 deletions
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 $?
+}