aboutsummaryrefslogtreecommitdiff
path: root/office/SOGo/rc.sogod
diff options
context:
space:
mode:
Diffstat (limited to 'office/SOGo/rc.sogod')
-rw-r--r--office/SOGo/rc.sogod7
1 files changed, 7 insertions, 0 deletions
diff --git a/office/SOGo/rc.sogod b/office/SOGo/rc.sogod
index 55ef759643..8ec1f7588e 100644
--- a/office/SOGo/rc.sogod
+++ b/office/SOGo/rc.sogod
@@ -11,6 +11,7 @@
# These values are defaults. You can update the USER and PREFORK values
# by making changes to /etc/sysconfig/sogo.
USER=sogo
+GROUP=sogo
PREFORK=3
PIDFILE=/var/run/sogo/sogo.pid
@@ -27,6 +28,12 @@ if [ -z "$GNUSTEP_SYSTEM_ROOT" ]; then
. ${GNUSTEP_MAKEFILES}/GNUstep.sh
fi
+PIDDIR=$(dirname $PIDFILE)
+if [ ! -d "$PIDDIR" ]; then
+ mkdir -p ${PIDDIR}
+ chown ${USER}:${GROUP} ${PIDDIR}
+fi
+
sogo_start() {
pid="$(cat $PIDFILE 2> /dev/null)"
if [ -n "$pid" ]; then