http://www.perlmonks.org?node_id=419297


in reply to Re: How best to see if syslogd is running?
in thread How best to see if syslogd is running?

Because the existance of the file does not prove syslogd is currently running since it may have terminated and not cleaned up the pid file (e.g. it crashes for some strange reason or someone sends it a nontrapable signal like SIGKILL).