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!
In reply to Re: Daemon::Control pid-files
by ikegami
in thread Daemon::Control pid-files
by morgon
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |