summaryrefslogtreecommitdiff
path: root/net-nds/openldap/files/slapd.service
diff options
context:
space:
mode:
Diffstat (limited to 'net-nds/openldap/files/slapd.service')
-rw-r--r--net-nds/openldap/files/slapd.service12
1 files changed, 12 insertions, 0 deletions
diff --git a/net-nds/openldap/files/slapd.service b/net-nds/openldap/files/slapd.service
new file mode 100644
index 0000000..3427b87
--- /dev/null
+++ b/net-nds/openldap/files/slapd.service
@@ -0,0 +1,12 @@
+[Unit]
+Description=OpenLDAP Server Daemon
+After=network.target
+
+[Service]
+Type=forking
+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