[Bug 190643] New: /usr/sbin/daemon -P option does not work as documented
bz-noreply at freebsd.org
bz-noreply at freebsd.org
Thu Jun 5 03:47:51 UTC 2014
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=190643
Bug ID: 190643
Summary: /usr/sbin/daemon -P option does not work as documented
Product: Base System
Version: 9.2-STABLE
Hardware: Any
OS: Any
Status: Needs Triage
Severity: Affects Some People
Priority: ---
Component: bin
Assignee: freebsd-bugs at FreeBSD.org
Reporter: barney at databus.com
If daemon's -P option is used without the -p option, the pidfile is not removed
when the process terminates. To demonstrate:
/usr/sbin/daemon -P pid.daemon sleep 5
After sleep terminates, pid.daemon is left around, pointing to a nonexistent
process. It also seems that there is no separate daemon process, as the
pid.daemon file points to the sleep process.
The danger of leaving the pidfile around is of course when pids cycle around an
unintended process might be terminated.
This might be treated as a documentation bug, as using -P without -p or -r is
at least unusual.
--
You are receiving this mail because:
You are the assignee for the bug.
More information about the freebsd-bugs
mailing list