I know to start openldap, the following command is used.
slapd -f slapd.conf
but to shutdown openldap, what is the command used ?
Currently, I am using "pkill slapd" but I think it's not the proper way.
Thanks
Confidential Communication - This e-mail (including any attachments) is confidential and may be legally privileged. If this e-mail has been sent to you by mistake please inform us by reply e-mail and then delete the e-mail, destroy any printed copy and do not disclose or use the information in it.
Paul Lee writes:
I know to start openldap, the following command is used.
slapd -f slapd.conf
but to shutdown openldap, what is the command used ?
Currently, I am using "pkill slapd" but I think it's not the proper way.
Yes, it is.
Though if you start slapd via some script in /etc/rc.d/, then you should presumably stop it the same way so rc can keep track of its own magic.
And of course if you have several slapd processes (e.g. while testing) you'll need to kill the right one. You can make it write its pid to a file with the "pidfile" directive in slapd.conf.
openldap-technical@openldap.org