initial commit of file from CVS for e-smith-ldap on Wed 12 Jul 08:58:23 BST 2023
This commit is contained in:
21
root/usr/lib/systemd/system/ldap.init.service
Normal file
21
root/usr/lib/systemd/system/ldap.init.service
Normal file
@@ -0,0 +1,21 @@
|
||||
[Unit]
|
||||
Description=Koozali SME Server ldap.init
|
||||
After=syslog.target network-online.target ldap.service
|
||||
|
||||
[Service]
|
||||
Type=forking
|
||||
Restart=no
|
||||
TimeoutSec=5min
|
||||
IgnoreSIGPIPE=no
|
||||
KillMode=process
|
||||
GuessMainPID=no
|
||||
RemainAfterExit=yes
|
||||
ExecStartPre=/sbin/e-smith/service-status ldap.init
|
||||
ExecStart=/etc/rc.d/init.d/ldap.init start
|
||||
ExecStop=/etc/rc.d/init.d/ldap.init stop
|
||||
|
||||
|
||||
[Install]
|
||||
WantedBy=sme-server.target
|
||||
|
||||
|
26
root/usr/lib/systemd/system/ldap.service
Normal file
26
root/usr/lib/systemd/system/ldap.service
Normal file
@@ -0,0 +1,26 @@
|
||||
[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
|
@@ -0,0 +1,6 @@
|
||||
[Service]
|
||||
# disabled
|
||||
# we are using ldap.service
|
||||
ExecStart=/usr/bin/true
|
||||
ExecStartPre=
|
||||
PIDFile=
|
Reference in New Issue
Block a user