Date: Wed, 16 Jul 2008 17:03:06 -0400 From: David Schultz <das@FreeBSD.ORG> To: Doug Barton <dougb@FreeBSD.ORG> Cc: freebsd-current@FreeBSD.ORG, Dan Nelson <dnelson@allantgroup.com> Subject: Re: Heads Up: shutdown keyword added to 34 rc.d scripts. Message-ID: <20080716210306.GA20758@zim.MIT.EDU> In-Reply-To: <487E5DCD.3010206@FreeBSD.org> References: <487E533F.7050303@FreeBSD.org> <20080716201819.GB19044@dan.emsphone.com> <487E5DCD.3010206@FreeBSD.org>
next in thread | previous in thread | raw e-mail | index | archive | help
On Wed, Jul 16, 2008, Doug Barton wrote: > Dan Nelson wrote: > >Adding > >shutdown to things like amd, mountd, moused, etc. simply forces what > >would be done in init's final SIGTERM sweep to be done sequentially > >instead of in parallel. > > The ability to do things sequentially is a key benefit of the rc.d > system. The fact that we have not been taking full advantage of that > to date is (once again IMO) an oversight. A niftier trick would be to actually denote the shutdown dependencies between apps. Then SIGTERM (or whatever the appropriate shutdown operation is) can happen in parallel as much as possible, without accidentally shutting down a service before dependent services have had a chance to clean up. There's probably not as many interesting deps for shutdown as there are for startup...
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20080716210306.GA20758>