rc script problem - pidfile not being recognised

Roger Marquis marquis at roble.com
Sat Sep 12 15:02:12 UTC 2015

RW via freebsd-ports wrote:
> You'd rather an rc script fails at run-time and shuts down the wrong
> daemon than fail when the script is being developed?

It's not so much where the script fails than that it fails in the first
place.  Neither a pidfile nor a command_interpreter needs to be required
for an rc scripts to work.  These are nice features but making them
mandatory is at best a sort of premature optimization.

The freebsd rc script environment is already far too OS-specific and
un-editable, often containing no readable shell code at all.  What if
your interpreter changes from say python2.7 to python for example?  Does
that mean you have to reinstall all the associated packages or edit their
rc scripts?

Neither shouldn you have to parse who knows how many hundred of lines of
shell code included by /etc/rc.subr or rewrite an rc script from scratch
to make a simple change.  We appreciate the features this subsystem
provides and the work devs have put into it but not when it's made
mandatory.  The value of KIS needs to be emphasized here.

Roger Marquis

More information about the freebsd-ports mailing list