diff options
author | V3n3RiX <venerix@redcorelinux.org> | 2018-07-14 21:03:06 +0100 |
---|---|---|
committer | V3n3RiX <venerix@redcorelinux.org> | 2018-07-14 21:03:06 +0100 |
commit | 8376ef56580626e9c0f796d5b85b53a0a1c7d5f5 (patch) | |
tree | 7681bbd4e8b05407772df40a4bf04cbbc8afc3fa /gnustep-apps/sogo/files | |
parent | 30a9caf154332f12ca60756e1b75d2f0e3e1822d (diff) |
gentoo resync : 14.07.2018
Diffstat (limited to 'gnustep-apps/sogo/files')
-rw-r--r-- | gnustep-apps/sogo/files/sogod.confd | 6 | ||||
-rw-r--r-- | gnustep-apps/sogo/files/sogod.initd | 32 |
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 ${?} +} |