summaryrefslogtreecommitdiffstats
path: root/kolabd/kolabd.systemd
diff options
context:
space:
mode:
authorJeroen van Meeuwen (Kolab Systems) <vanmeeuwen@kolabsys.com>2012-04-19 16:56:16 +0100
committerJeroen van Meeuwen (Kolab Systems) <vanmeeuwen@kolabsys.com>2012-04-19 16:56:16 +0100
commit0a993d4b3c0b3afe76ed07d177b891791f6ae94f (patch)
tree9d480fc03cae42f1253557de088c7c5482384fce /kolabd/kolabd.systemd
parent9663ff263d90af9156112f46c9d7b1651664cb0f (diff)
downloadpykolab-0a993d4b3c0b3afe76ed07d177b891791f6ae94f.tar.gz
Add kolabd systemd file
Refactor process management in kolabd
Diffstat (limited to 'kolabd/kolabd.systemd')
-rw-r--r--kolabd/kolabd.systemd15
1 files changed, 15 insertions, 0 deletions
diff --git a/kolabd/kolabd.systemd b/kolabd/kolabd.systemd
new file mode 100644
index 0000000..80305f8
--- /dev/null
+++ b/kolabd/kolabd.systemd
@@ -0,0 +1,15 @@
+[Unit]
+Description=Kolab Groupware Server.
+After=syslog.target network.target
+
+[Service]
+Type=forking
+PIDFile=/var/run/kolabd/kolabd.pid
+EnvironmentFile=/etc/sysconfig/kolabd
+ExecStart=/usr/sbin/kolabd $FLAGS
+ExecReload=/bin/kill -HUP $MAINPID
+ExecStop=/bin/kill -TERM $MAINPID
+
+[Install]
+WantedBy=multi-user.target
+