27 lines
864 B
SYSTEMD
27 lines
864 B
SYSTEMD
|
[Unit]
|
||
|
Description=Koozali SME Server OpenLDAP Server Daemon
|
||
|
After=syslog.target network-online.target
|
||
|
Documentation=man:slapd
|
||
|
Documentation=man:slapd-config
|
||
|
Documentation=man:slapd-hdb
|
||
|
Documentation=man:slapd-mdb
|
||
|
Documentation=file:///usr/share/doc/openldap-servers/guide.html
|
||
|
|
||
|
[Service]
|
||
|
Type=simple
|
||
|
PIDFile=/var/run/openldap/slapd.pid
|
||
|
Environment="SLAPD_URLS=ldap:/// ldaps:/// ldapi:///" "SLAPD_OPTIONS=-4 -d 256 -s 0"
|
||
|
EnvironmentFile=/etc/sysconfig/slapd
|
||
|
ExecStartPre=/sbin/e-smith/service-status ldap
|
||
|
ExecStartPre=/sbin/e-smith/expand-template /etc/openldap/ssl/slapd.pem
|
||
|
ExecStartPre=/sbin/e-smith/systemd/ldap-prepare
|
||
|
#ExecStartPre=/usr/libexec/openldap/check-config.sh
|
||
|
ExecStart=/usr/sbin/slapd -u ldap -h ${SLAPD_URLS} $SLAPD_OPTIONS
|
||
|
TimeoutStartSec=300
|
||
|
Restart=always
|
||
|
|
||
|
ExecStopPost=/sbin/e-smith/systemd/ldap-finish
|
||
|
|
||
|
[Install]
|
||
|
WantedBy=sme-server.target
|