Re: Announce: script to automatically restart services after update of dependencies
On Tue, 19 Jun 2012 12:23:45 +0200, Goswin von Brederlow wrote:
> Tomas Pospisek writes:
>> On Mon, 18 Jun 2012 14:10:46 +0100, Ben Hutchings wrote:
>>> On Mon, 2012-06-18 at 20:40 +0800, Paul Wise wrote:
>>>> On Mon, Jun 18, 2012 at 5:40 PM, Tomas Pospisek wrote:
>>>> > I want to announce restart-services here . It's a script
>>>> > that tries to restart all services that have had their
>>>> > dependency packages updated. This is primarily useful when
>>>> > security-relevant libraries get security releases.
>>>> > It's using checkrestart from the debian-goodies package to do
>>>> > most of its work.
>>>> > Together with the unattended-upgrades package it is saving me
>>>> > a lot of system maintenance time, thus I am announcing it here
>>>> > in the hope that it will save others a lot of time as well.
>>>> Sounds useful, maybe put it in the debian-goodies package?
>> I've proposed this to Javier  and it's been quite well received :-)
>>> What, yet another feature reserved for those in the know? Surely we
>>> should be doing this by default.
>> I agree. Could you suggest a way forward? Currently I'm aiming for
>> debian-goodies, however maybe unattended-upgrades would be a better
>> However I think really it should go into apt-level inftrastructure.
> I want to automatically restart services so that / and /usr can be
> remounted read-only again. But I don't want unattended upgrades. So for
> me debian-goddies is a better fit. Easy enough to add it then to the
> apt config.
However Ben argued, if I interpret him correctly, that services that
on something (a library), should be restarted by default if that
updated and the user should not be required to install an "obscure"
have that sane default behavior.
This implies that an "apt-get install library" needs to trigger that
Which means that apt-get needs to depend on restart-services. So either
restart-services and checkrestart should go into the apt package, or apt
to depend on/recommend debian-goodies, which would currently pull in
perl, curl, dialog and their respective dependencies.
The later may be a technically working solution, but from a conceptual and
KISS point of view doesn't make sense to me.
Is my conclusion correct so far?
So if we want a "clean" solution, then checkrestart/restart-services would
to move into apt and get rid of the non-essential dependencies (get
shell or C).
>>  http://bugs.debian.org/676509