Antoine Pitrou firstname.lastname@example.org writes:
* If the `pidfile_directory` attribute is not ``None``: * Look in that directory for a file named '`pidfile_name`.pid'; if it exists, raise a `DaemonError` to prevent multiple instances of the daemon process.
It should first check that there does exist a processus with that number, so that stale pid files don't cause too many problems.
Good point, thanks.
What would be appropriate behaviour in the case of a stale PID file? Abort the daemonisation attempt? Delete the stale lock file silently and continue as though it didn't exist?
-- \ “I bought some powdered water, but I don't know what to add.” | `\ —Steven Wright | _o__) | Ben Finney