From ca9627e70852f6b2e835660df870fe3ab405882d Mon Sep 17 00:00:00 2001 From: "Suren A. Chilingaryan" Date: Sun, 1 Sep 2019 00:00:32 +0200 Subject: Initial import --- www-apps/loggerhead/files/loggerhead.init | 27 +++++++++++++++++++++++++++ 1 file changed, 27 insertions(+) create mode 100644 www-apps/loggerhead/files/loggerhead.init (limited to 'www-apps/loggerhead/files/loggerhead.init') 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 $? +} -- cgit v1.2.3