in reply to Detecting stale pid file under *nix

If you would use daemontools or similar, you would never have any stale PID files. Simply because you don't need any PID files. (To be honest, PID files are a stupid idea, as you will see when you understand how clean deamontools work.)

See Re: Daemon::Control pid-files and the postings linked from there for details. See Re: How to get the process Id for why PID files are stupid.

Alexander

--
Today I will gladly share my knowledge and experience, for there are no sweeter words than "I told you so". ;-)
  • Comment on Re: Detecting stale pid file under *nix