tags 914753 upstream fixed-upstream
thanks


Hi Balint,

I patched the apt hook script to skip needrestart if a shutdown is detected. Could you give the script[1] a try by putting it at /usr/lib/needrestart/apt-pinvoke or updating the apt config (/etc/apt/apt.conf.d/99needrestart)?

[1] https://github.com/liske/needrestart/commit/c7a17d4e5a01ff060a66d695e824d939637e4acb#diff-d02d8108f63e3cbd77becdf4a837d2c9


Thanks,
Thomas



On Mon, 26 Nov 2018, Balint Reczey wrote:

Package: needrestart
Severity: wishlist
Version: 3.3-2

Hi,

Unattended-upgrades has a mode where it installs upgrades during
shutdown where discovering the services in need of a restart is not
particularly useful but the discovery itself slows down the shutdown.

Please consider detecting if the system goes down already per systemd
and also please check for logind's PreparingForShutdown state [2].

Thanks,
Balint

[1] https://github.com/mvo5/unattended-upgrades/blob/master/debian/NEWS
[2] https://www.freedesktop.org/wiki/Software/systemd/inhibit/



--

   :::  GnuPG: 0x49D0C2C3              mailto:tho...@fiasko-nw.net  :::

Reply via email to