[Bug 222147] rc.subr check_pidfile fails to recognise swapped out process

bugzilla-noreply at freebsd.org bugzilla-noreply at freebsd.org
Mon Oct 9 10:53:33 UTC 2017


https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=222147

--- Comment #2 from vegeta at tuxpowered.net ---
Relaying on config parameters being in config file instead of command line is
not much of a difference as way more is missing from `ps` output, mainly the
primary program/script name. check_pidfile would have to relay only on
$interpreter in such case.

As for the other solution I suggested in the original ticket, to use daemon(8),
I'm not sure anymore if it would help. Daemon(8) might get swapped out too,
unless it performs some checks periodically. But if it just waits for a signal,
and I see a sigwait in wait_child function in source code, then this approach
won't work.

-- 
You are receiving this mail because:
You are the assignee for the bug.


More information about the freebsd-rc mailing list