From 4f2d7949f03e1c198bc888f2d05f421d35c57e21 Mon Sep 17 00:00:00 2001 From: V3n3RiX Date: Mon, 9 Oct 2017 18:53:29 +0100 Subject: reinit the tree, so we can have metadata --- gnustep-apps/sogo/files/sogod.confd | 6 ++++++ gnustep-apps/sogo/files/sogod.initd | 32 ++++++++++++++++++++++++++++++++ 2 files changed, 38 insertions(+) create mode 100644 gnustep-apps/sogo/files/sogod.confd create mode 100644 gnustep-apps/sogo/files/sogod.initd (limited to 'gnustep-apps/sogo/files') diff --git a/gnustep-apps/sogo/files/sogod.confd b/gnustep-apps/sogo/files/sogod.confd new file mode 100644 index 000000000000..906a6978d862 --- /dev/null +++ b/gnustep-apps/sogo/files/sogod.confd @@ -0,0 +1,6 @@ +# /etc/conf.d/sogod: config file for /etc/init.d/sogod + +SOGOD_WORKERS=3 + +# Additional options for SOGo +SOGOD_OPTS="" diff --git a/gnustep-apps/sogo/files/sogod.initd b/gnustep-apps/sogo/files/sogod.initd new file mode 100644 index 000000000000..ad003be62c9b --- /dev/null +++ b/gnustep-apps/sogo/files/sogod.initd @@ -0,0 +1,32 @@ +#!/sbin/openrc-run +# Copyright 1999-2014 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +SOGOD_PID=/run/sogo/sogod.pid + +depend() { + need net + need memcached + after postgresql mysql + after slapd + after mta +} + +start() { + checkpath -q -d -m 0755 -o sogo:sogo $(dirname "${SOGOD_PID}") + ebegin "Starting SOGo service" + start-stop-daemon --start --quiet \ + --user sogo --exec /usr/sbin/sogod \ + -- -WOWorkersCount ${SOGOD_WORKERS} \ + -WOLogFile /var/log/sogo/sogod.log \ + -WOPidFile "${SOGOD_PID}" \ + "${SOGOD_OPTS}" + eend ${?} +} + +stop() { + ebegin "Stopping SOGo service" + start-stop-daemon --stop \ + --pidfile "${SOGOD_PID}" + eend ${?} +} -- cgit v1.2.3