[Date Prev][Date Next] [Chronological] [Thread] [Top]

Re: startup script when server reboots

On Tue, Nov 21, 2000 at 09:11:59AM -0800, Sean Kelly wrote:

> No less than *four* concurrent processes to get the PID?
> Why not use "cat /usr/local/var/slapd.pid"?

It only works if the server is running. If the server has crashed and the
PID file has not been cleaned then the pid might be reused by some other
process. Note that this problem also exists with the posted script's 'stop'
command: if the slapd daemon has crashed then it might kill some random
process which was unlucky enough to get the same pid from the kernel.


Gabor Gombas                                       Eotvos Lorand University
E-mail: gombasg@inf.elte.hu                        Hungary