nosh init system

Conrad Meyer cem at freebsd.org
Sun Feb 10 23:20:37 UTC 2019


On Sat, Feb 9, 2019 at 8:20 PM Rodney W. Grimes
<freebsd-rwg at pdx.rh.cn85.dnsmgr.net> wrote:
> It -should- be safe to restart rc, as rc scripts should check to
> see if the item they are being requested to start is already running,

It isn't, as described in detail in the email Cy replied to.

There is some difficulty in making scripts idempotent even in
relatively happy cases; not everything has a pid file (and pid files
are not a particularly robust system anyway).  Even harder are weird
corner cases like interrupted and resumed boot, that are rarely or
never tested.  Shell is just a poor language for any sophisticated
behavior or robust error handling.

Conrad


More information about the freebsd-hackers mailing list