diff options
author | Suren A. Chilingaryan <csa@suren.me> | 2019-09-01 00:00:32 +0200 |
---|---|---|
committer | Suren A. Chilingaryan <csa@suren.me> | 2019-09-01 00:00:32 +0200 |
commit | ca9627e70852f6b2e835660df870fe3ab405882d (patch) | |
tree | 0a008b1d5b16fa0679a195ed7b5662c7891f591c /www-apps/loggerhead/files | |
download | darklin4-ca9627e70852f6b2e835660df870fe3ab405882d.tar.gz darklin4-ca9627e70852f6b2e835660df870fe3ab405882d.tar.bz2 darklin4-ca9627e70852f6b2e835660df870fe3ab405882d.tar.xz darklin4-ca9627e70852f6b2e835660df870fe3ab405882d.zip |
Initial import
Diffstat (limited to 'www-apps/loggerhead/files')
-rw-r--r-- | www-apps/loggerhead/files/loggerhead.confd | 3 | ||||
-rw-r--r-- | www-apps/loggerhead/files/loggerhead.init | 27 |
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 $? +} |