On Wed, Nov 30, 2011 at 10:16:06AM -0700, Warner Losh wrote:
> /var/run isn't ever cleared on boot.

The script /etc/rc.d/cleanvar, enabled by default, does this.

> Programs are supposed to cope with with stale .pid files, since they
> might have died w/o deleting it...

Without cleanvar, after an unclean reboot we would likely end up with
some pidfiles that look valid (because the process exists) but are not.
Checking the executable of the running process may help but is not
always done and not fully reliable either (for example if you run many
instances of the same daemon executable).

-- 
Jilles Tjoelker
_______________________________________________
[email protected] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-rc
To unsubscribe, send any mail to "[email protected]"

Reply via email to