822420e2d3
Package openldap-config is added to config customized config file of openldap. Here is the customized change in slapd.service: " -After=syslog.target network-online.target +Before=rsyncd.service +After=network.target syslog-ng.target -PIDFile=/var/run/openldap/slapd.pid +PIDFile=/var/run/slapd.pid -ExecStart=/usr/sbin/slapd -u ldap -h ${SLAPD_URLS} $SLAPD_OPTIONS +ExecStart=/etc/init.d/openldap start +ExecStop=/etc/init.d/openldap stop +ExecReload=/etc/init.d/openldap restart +RemainAfterExit=yes " Here is the customized change in slapd.sysconfig: " -#SLAPD_OPTIONS="" +SLAPD_OPTIONS="" " Test: Pass build and multi node deploy test. Confirmed related config file is the same as before in deploy node. Story: 2003768 Task: 26462 Depends-On: https://review.openstack.org/618440 Change-Id: I2559a8e43619449d6179ed913181052d653fa91d Signed-off-by: slin14 <shuicheng.lin@intel.com>
24 lines
647 B
Desktop File
24 lines
647 B
Desktop File
[Unit]
|
|
Description=OpenLDAP Server Daemon
|
|
Before=rsyncd.service
|
|
After=network.target syslog-ng.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=forking
|
|
PIDFile=/var/run/slapd.pid
|
|
Environment="SLAPD_URLS=ldap:/// ldapi:///" "SLAPD_OPTIONS="
|
|
EnvironmentFile=/etc/sysconfig/slapd
|
|
ExecStartPre=/usr/libexec/openldap/check-config.sh
|
|
ExecStart=/etc/init.d/openldap start
|
|
ExecStop=/etc/init.d/openldap stop
|
|
ExecReload=/etc/init.d/openldap restart
|
|
RemainAfterExit=yes
|
|
|
|
[Install]
|
|
WantedBy=multi-user.target
|