Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 12 Sep 2012 01:11:39 -0700
From:      Xin Li <delphij@delphij.net>
To:        Doug Barton <dougb@FreeBSD.org>
Cc:        crees@FreeBSD.org, freebsd-rc@FreeBSD.ORG, d@delphij.net
Subject:   Re: [PATCH] Add -R (restart all local services) to service(8)
Message-ID:  <505043BB.1040709@delphij.net>
In-Reply-To: <50503F83.2010308@FreeBSD.org>
References:  <504A5688.3090905@delphij.net> <504ECCD9.8010705@FreeBSD.org> <504F98E4.5090706@delphij.net> <50503F83.2010308@FreeBSD.org>

next in thread | previous in thread | raw e-mail | index | archive | help
-----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-----



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?505043BB.1040709>