summaryrefslogtreecommitdiff
path: root/net-nds/openldap/files/slapd-2.6.1.service
diff options
context:
space:
mode:
Diffstat (limited to 'net-nds/openldap/files/slapd-2.6.1.service')
-rw-r--r--net-nds/openldap/files/slapd-2.6.1.service12
1 files changed, 12 insertions, 0 deletions
diff --git a/net-nds/openldap/files/slapd-2.6.1.service b/net-nds/openldap/files/slapd-2.6.1.service
new file mode 100644
index 000000000000..5f08be3b37f9
--- /dev/null
+++ b/net-nds/openldap/files/slapd-2.6.1.service
@@ -0,0 +1,12 @@
+[Unit]
+Description=OpenLDAP Server Daemon
+After=network.target
+
+[Service]
+Type=notify
+PIDFile=/run/openldap/slapd.pid
+ExecStartPre=/usr/sbin/slaptest -Q -u $SLAPD_OPTIONS
+ExecStart=/usr/lib/openldap/slapd -u ldap -h ${SLAPD_URLS} $SLAPD_OPTIONS
+
+[Install]
+WantedBy=multi-user.target