From owner-freebsd-rc@FreeBSD.ORG Wed Sep 12 08:11:42 2012 Return-Path: Delivered-To: freebsd-rc@FreeBSD.ORG Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id EF9E7106566B; Wed, 12 Sep 2012 08:11:41 +0000 (UTC) (envelope-from delphij@delphij.net) Received: from anubis.delphij.net (anubis.delphij.net [IPv6:2001:470:1:117::25]) by mx1.freebsd.org (Postfix) with ESMTP id CC2AA8FC14; Wed, 12 Sep 2012 08:11:41 +0000 (UTC) Received: from Xins-MacBook-Pro.local (c-67-188-85-47.hsd1.ca.comcast.net [67.188.85.47]) (using TLSv1 with cipher ECDHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by anubis.delphij.net (Postfix) with ESMTPSA id 7EE561E0BF; Wed, 12 Sep 2012 01:11:41 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=delphij.net; s=anubis; t=1347437501; bh=4OGs3sXjD/Cfm/GOgPedZg/vRS5N/cfBIj2BJ/GLWd0=; h=Date:From:Reply-To:To:CC:Subject:References:In-Reply-To; b=BQs4YNtbB3rV2zvZ6cjXeBH9/3SHaGR0vichn8jSvYP2GRdengBD3GTjSZ2SCJeQD svmzeWtshroLK5H8cCiTZQBrD35gv8joy/K8u7gPzkEMBQYCnD6A9igeyErR5tZAmO fK5SzU6cHfO1r148L7bq6hlJdsYXor4o/gqZP00o= Message-ID: <505043BB.1040709@delphij.net> Date: Wed, 12 Sep 2012 01:11:39 -0700 From: Xin Li Organization: The FreeBSD Project User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.8; rv:15.0) Gecko/20120907 Thunderbird/15.0.1 MIME-Version: 1.0 To: Doug Barton References: <504A5688.3090905@delphij.net> <504ECCD9.8010705@FreeBSD.org> <504F98E4.5090706@delphij.net> <50503F83.2010308@FreeBSD.org> In-Reply-To: <50503F83.2010308@FreeBSD.org> X-Enigmail-Version: 1.4.4 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Cc: crees@FreeBSD.org, freebsd-rc@FreeBSD.ORG, d@delphij.net Subject: Re: [PATCH] Add -R (restart all local services) to service(8) X-BeenThere: freebsd-rc@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: d@delphij.net List-Id: "Discussion related to /etc/rc.d design and implementation." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 12 Sep 2012 08:11:42 -0000 -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA256 On 9/12/12 12:53 AM, Doug Barton wrote: > On 09/11/2012 10:02 AM, Xin Li wrote: >> On 09/10/12 22:32, Doug Barton wrote: >>> On 09/07/2012 13:18, Xin Li wrote: >>>> Hi, >> >>>> Here is a patch that adds a new option, -R, to service(8), >>>> that restarts all "local" services. Useful for after >>>> portmaster -a. >> >>> Since no one else has spoken up, I will. I dislike this idea >>> rather strongly, and would not like to see it go in. It's >>> incredibly rare that restarting all local services would be >>> the right course of >> >> It's not rare after a port upgrade, and this makes it possible to >> stop and start services in the right order. > > So what you and Chris are asserting is that it's frequently > necessary to stop and restart ALL of your ports related services, > AND that they have to be done in the right order? The latter is > very rare (most ports Really? > services tend to be independent of each other). And in all my time > administering FreeBSD systems, I have never thought to myself, > "Boy, I need an easy way to restart all my local services." > > Can y'all give an actual example of when this might be necessary? Run OpenLDAP as backend, with dovecot as IMAP store, postfix as MTA, clamav and amavisd-new, mailman for mailing list, a postfix policy daemon that stores certain persistent data in MySQL. Now, OpenLDAP, clamav and MySQL updates. No, not every application handles restarts gracefully, they need to be restarted. Cheers, -----BEGIN PGP SIGNATURE----- Version: GnuPG/MacGPG2 v2.0.17 (Darwin) iQEcBAEBCAAGBQJQUEO7AAoJEG80Jeu8UPuz/iQIAJ8TgOFqGuJfP8pu6oy5jrNU ykq255a/IyUtLKAxyleF/sd1Dfx8IObMdo2v6T2sN4dU9MFIB+wsYVyUS57+mWkI F0AlKK+bGguf9lWXsWNUUC2BJi8CIwAhxLCxbtF90/eezjLHHYl8u+hGvLKVJ9rG kjn7sf5fGFSj14Nsf7OBvYBs/Kv746lXESNN3WfDmlUwrJ7poN83txiWZ+0gqodr +AY1vFNeaL4FmP8YvNq+oDGZV0/9ce0fuauKj8gAA8XfhlBednDm07H9l/66saI5 g2SMAeYkRUGenVVQo6+f9TdjTdaP+oSgBBCw5HdkFlw3GSrRLXwc9uObDyJ2HSo= =90A9 -----END PGP SIGNATURE-----