For monitoring reasong there is usually no sense to run it from root.
However, daemon(8) creates pid files unconditionally with 0600 mode.
This patch adds -i option to override this.
Details
Details
Diff Detail
Diff Detail
- Repository
- rS FreeBSD src repository - subversion
- Lint
Lint Passed - Unit
No Test Coverage - Build Status
Buildable 21633 Build 20926: arc lint + arc unit
Event Timeline
Comment Actions
A world-readable pidfile can be locked in shared mode by any user, which may cause the real daemon to act as if it is already running when it is not (e.g. after it crashed).
Ideally, something better than pidfiles would be used to track and monitor daemons.
Comment Actions
OK from the manpage side, a src comitter should check the implementation part for correctness.
Comment Actions
Please remeber to bump the date in the manual page.
usr.sbin/daemon/daemon.8 | ||
---|---|---|
67 | It looks like we refer to PID files as pidfiles later in the manual. We might want to stick to pidfiles for consistency. |