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@FreeBSD.org
Reporter: barney@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.
_______________________________________________
freebsd-bugs@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-bugs
To unsubscribe, send any mail to "freebsd-bugs-unsubscribe@freebsd.org"