summaryrefslogtreecommitdiffstats
path: root/kolabd
diff options
context:
space:
mode:
Diffstat (limited to 'kolabd')
-rw-r--r--kolabd/kolabd.sysconfig3
-rw-r--r--kolabd/kolabd.systemd2
2 files changed, 4 insertions, 1 deletions
diff --git a/kolabd/kolabd.sysconfig b/kolabd/kolabd.sysconfig
index 0705f32..93d27b5 100644
--- a/kolabd/kolabd.sysconfig
+++ b/kolabd/kolabd.sysconfig
@@ -2,4 +2,5 @@
#
# See kolabd --help for more flags.
#
-FLAGS="--fork -l warning" \ No newline at end of file
+FLAGS="--fork -l warning"
+DAEMONOPTS="--user kolab"
diff --git a/kolabd/kolabd.systemd b/kolabd/kolabd.systemd
index 80305f8..92db05e 100644
--- a/kolabd/kolabd.systemd
+++ b/kolabd/kolabd.systemd
@@ -5,6 +5,8 @@ After=syslog.target network.target
[Service]
Type=forking
PIDFile=/var/run/kolabd/kolabd.pid
+User=kolab
+Group=kolab
EnvironmentFile=/etc/sysconfig/kolabd
ExecStart=/usr/sbin/kolabd $FLAGS
ExecReload=/bin/kill -HUP $MAINPID