rc script problem - pidfile not being recognised
Roger Marquis
marquis at roble.com
Fri Sep 11 16:50:08 UTC 2015
RW via freebsd-ports wrote:
> It needs both. It won't use just the pid file because the pid
> might have been reassigned to another process if the original daemon
> died without deleting its pid file.
Why would this rc script *require* a command_interpreter variable to use
the pidfile variable? I'm curious because this violates KIS, the
principle of least surprise and few rc scripts seem to have this variable
defined.
Using command_interpreter is good to be sure, for for the reason listed,
but rc scripts should not fail if it is undefined.
IMO,
Roger Marquis
More information about the freebsd-ports
mailing list