summaryrefslogtreecommitdiffstats
path: root/saslauthd
diff options
context:
space:
mode:
authorJeroen van Meeuwen (Kolab Systems) <vanmeeuwen@kolabsys.com>2012-04-19 16:58:46 +0100
committerJeroen van Meeuwen (Kolab Systems) <vanmeeuwen@kolabsys.com>2012-04-19 16:58:46 +0100
commit1a2d4b809307316a59961811d3f252e0b50477fe (patch)
treee1c02009ac69fa963e9a9b01a7170cc7e8a736a3 /saslauthd
parent5d4c3e69fd9ed03703f2ccc7feb46396f0e6bad9 (diff)
downloadpykolab-1a2d4b809307316a59961811d3f252e0b50477fe.tar.gz
Add systemd file for kolab-saslauthd
Diffstat (limited to 'saslauthd')
-rw-r--r--saslauthd/Makefile.am2
-rw-r--r--saslauthd/kolab-saslauthd.systemd15
2 files changed, 17 insertions, 0 deletions
diff --git a/saslauthd/Makefile.am b/saslauthd/Makefile.am
index 1574115..21ae0a5 100644
--- a/saslauthd/Makefile.am
+++ b/saslauthd/Makefile.am
@@ -1,5 +1,6 @@
EXTRA_DIST = \
kolab-saslauthd.sysconfig \
+ kolab-saslauthd.systemd \
kolab-saslauthd.sysvinit
saslauthddir = $(pythondir)/saslauthd
@@ -7,6 +8,7 @@ saslauthd_PYTHON = $(wildcard *.py)
install-exec-local:
mkdir -p $(DESTDIR)/$(localstatedir)/run/kolab-saslauthd \
+ $(DESTDIR)/$(localstatedir)/run/kolab-saslauthd \
$(DESTDIR)/$(localstatedir)/run/saslauthd \
$(DESTDIR)/$(localstatedir)/lib/kolab-saslauthd
diff --git a/saslauthd/kolab-saslauthd.systemd b/saslauthd/kolab-saslauthd.systemd
new file mode 100644
index 0000000..a39073c
--- /dev/null
+++ b/saslauthd/kolab-saslauthd.systemd
@@ -0,0 +1,15 @@
+[Unit]
+Description=Kolab Groupware SASL Authentication Daemon.
+After=syslog.target network.target
+
+[Service]
+Type=forking
+PIDFile=/var/run/kolab-saslauthd/kolab-saslauthd.pid
+EnvironmentFile=/etc/sysconfig/kolab-saslauthd
+ExecStart=/usr/sbin/kolab-saslauthd $FLAGS
+ExecReload=/bin/kill -HUP $MAINPID
+ExecStop=/bin/kill -TERM $MAINPID
+
+[Install]
+WantedBy=multi-user.target
+