Services restarted by unattended upgrades because of /etc/needrestart/restart.d/systemd-manager
Wiebe Cazemier
wiebe at halfgaar.net
Thu Jun 6 01:28:17 UTC 2024
Hi Simon,
----- Original Message -----
> From: "Simon Chopin" <simon.chopin at canonical.com>
> To: "Wiebe Cazemier" <wiebe at halfgaar.net>
> Cc: ubuntu-devel-discuss at lists.ubuntu.com
> Sent: Wednesday, 5 June, 2024 22:46:55
> Subject: Re: Services restarted by unattended upgrades because of /etc/needrestart/restart.d/systemd-manager
>
>>
>> I did not have "$nrconf{restart} = 'i'" uncommented. But when I do this
>>
>> > # cat /etc/needrestart/conf.d/disable-restart.conf
>> > $nrconf{restart} = 'l';
>>
>> and reinstall libssl (apt reinstall libssl3t64), it still restarts everything,
>> without asking. Was that the proper way to disable it that warrants a bug
>> report?
>
> That's not the documented way to disable it, but yes I agree with you
> that from a user's perspective it should have that effect. However, I
> enjoin you to actually read the documentation I linked to, since it also
> explains how to selectively disable restarts for specific services while
> still retaining the default behaviour for the rest of the system.
Alright, I submitted the bug report: https://bugs.launchpad.net/ubuntu/+source/needrestart/+bug/2068543
I hope it reflects the issue well.
Meanwhile, I took the relevant action for the servers in question to disable it.
BTW: the '-m u' is passed to /usr/sbin/needrestart, which does not document the option in --help. It seems to be patched in, because upstream at https://github.com/liske/needrestart does not have it.
Regards,
Wiebe
More information about the Ubuntu-devel-discuss
mailing list