in reply to Daemon::Control pid-files

If you stop the daemon normally (i.e. using the control script), then the control script *does* delete the PID file.

If the daemon stops prematurely (e.g. on its own or killed by a signal), then the control script can't possibly delete the PID file because it's not running.


By the way, why do you pass the value returned by run to exit? run doesn't ever return!