summaryrefslogtreecommitdiffstats
path: root/kolabd
diff options
context:
space:
mode:
authorJeroen van Meeuwen (Kolab Systems) <vanmeeuwen@kolabsys.com>2012-05-17 10:04:29 +0100
committerJeroen van Meeuwen (Kolab Systems) <vanmeeuwen@kolabsys.com>2012-05-17 10:04:29 +0100
commit327d454e7ba88b8a0b50fac3be088f6fed7ddc26 (patch)
treedcdca7a537eb340193199b630c896de26da55a13 /kolabd
parent1bb67edadd665af35366a07d60d61ef966c15d22 (diff)
downloadpykolab-327d454e7ba88b8a0b50fac3be088f6fed7ddc26.tar.gz
Set kolabd to run as kolab:kolab (systemd) or with daemon options --user kolab
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