Date: Sun, 10 Feb 2019 15:20:18 -0800 From: Conrad Meyer <cem@freebsd.org> To: "Rodney W. Grimes" <freebsd-rwg@pdx.rh.cn85.dnsmgr.net> Cc: "freebsd-hackers@freebsd.org" <freebsd-hackers@freebsd.org> Subject: Re: nosh init system Message-ID: <CAG6CVpUwU0no6TwLukFjv6D4DNKAsgWXbnpi%2B=3S0Yr9Z1fDkA@mail.gmail.com> In-Reply-To: <201902100420.x1A4KSxA064573@pdx.rh.CN85.dnsmgr.net> References: <201902100136.x1A1aXXv039736@slippy.cwsent.com> <201902100420.x1A4KSxA064573@pdx.rh.CN85.dnsmgr.net>
next in thread | previous in thread | raw e-mail | index | archive | help
On Sat, Feb 9, 2019 at 8:20 PM Rodney W. Grimes <freebsd-rwg@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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?CAG6CVpUwU0no6TwLukFjv6D4DNKAsgWXbnpi%2B=3S0Yr9Z1fDkA>
