Storing the PID in the kernel environment provides access to it when operating
on read-only filesystems. Additionally, it prevents issues with stale PID
files left behind if watchdogd is terminated by SIGKILL.
Details
Details
Diff Detail
Diff Detail
- Repository
- rG FreeBSD src repository
- Lint
Lint Skipped - Unit
Tests Skipped - Build Status
Buildable 73416 Build 70299: arc lint + arc unit
Event Timeline
Comment Actions
To me this looks like a more generic problem rather than just the watchdogd's problem. Should every daemon have this feature? Or should we say that /var/run shall be mdmfs(8) on hosts with read-only root?
I added authors of the pidfile(3) to add people who definitely thought a lot on this problem.
Comment Actions
IMO, it's good workaround for life critical services in the embedded area. But for generic use, instead of pidfile, we have to design proper subsystem.
Embedded devices have no screen to show an issue, so recover through wd's reset may help with many issues.