[Date Prev][Date Next]
[Chronological]
[Thread]
[Top]
Re: help me
På lau , 26/04/2003 klokka 15:12, skreiv Cécile Leyman:
> Slapd already running...
>
> type these commands :
>
> "netstat -ant | grep 389" and see if this port is open.
>
> "ps -ef | grep slapd" and view the slapd processes
>
> result:
> --------
> user number 15811 0 13:46 pts/1 00:00:00 [slapd]
> user number 19308 0 13:46 pts/1 00:00:00 [slapd]
> user number 19310 0 13:46 pts/1 00:00:00 [slapd]
> --------
>
> stop slapd => kill -INT `cat /path/to/openldap/slapd.pid`
Why SIGINT?
- Suppose there are multiple instances of slapd running on different
ports (as I have), and suppose the initial slapd pid has changed since
startup (can happen)?
To avoid all of the above hassle, forget netstat et al; just do do:
kill `ps -efw|grep slapd | awk '{ print $2 }'`
"kill" here is SIGTERM.
The RH /etc/rc.d/init.d/ldap with "function" (or whatever it might be)
does something similar.
> Verify that slapd not running (ps -ef | grep slapd) and then start slapd again.
Seems a good idea :-)
Best,
Tony
--
Tony Earnshaw
Do not come to visit me with both arms the same length.
e-post: tonni@billy.demon.nl
www: http://www.billy.demon.nl
Tony Earnshaw