summaryrefslogtreecommitdiff
path: root/gnustep-apps/sogo/files
diff options
context:
space:
mode:
authorV3n3RiX <venerix@redcorelinux.org>2017-10-09 18:53:29 +0100
committerV3n3RiX <venerix@redcorelinux.org>2017-10-09 18:53:29 +0100
commit4f2d7949f03e1c198bc888f2d05f421d35c57e21 (patch)
treeba5f07bf3f9d22d82e54a462313f5d244036c768 /gnustep-apps/sogo/files
reinit the tree, so we can have metadata
Diffstat (limited to 'gnustep-apps/sogo/files')
-rw-r--r--gnustep-apps/sogo/files/sogod.confd6
-rw-r--r--gnustep-apps/sogo/files/sogod.initd32
2 files changed, 38 insertions, 0 deletions
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 ${?}
+}