Fix shutdown trap, no slapd.pid was created

This commit is contained in:
Deon George 2023-05-19 20:52:43 +10:00
parent c8d3ee19ce
commit 1df1e8d5cd

2
init
View File

@ -6,7 +6,7 @@ SLAPD_CONFIG=${SLAPD_CONFIG:-"/etc/openldap/slapd.d/cn=config"}
function stop { function stop {
echo "Stopping ${NAME}" echo "Stopping ${NAME}"
kill $(cat /var/run/openldap/slapd.pid) kill $(pidof slapd)
} }
function mp() { function mp() {