[Bug 2063442] [NEW] needrestart on Ubuntu 24.04 is restarting google-guest-agent startup and shutdown scrips on reinstall but they should not be restarted
Philip Roche
2063442 at bugs.launchpad.net
Thu Apr 25 11:03:27 UTC 2024
Public bug reported:
The recent change in Ubuntu 24.04 and needrestart which results in
services being restarted automatically , details @
https://discourse.ubuntu.com/t/noble-numbat-release-
notes/39890#services-restart-on-unattended-upgrade-26, has resulted in
unexpected behaviour on Google GCE ubuntu 24.04 images where if the
google-guest-agent package is reinstalled then needrestart will restart
the `google-startup-scripts.service` and `google-shutdown-
scripts.service` but these should only be run during the lifetime of the
instance and should not be restarted.
It can be worked around by setting `NEEDRESTART_SUSPEND=1` prior to any
re-install as per the needrestart man pages @
https://manpages.ubuntu.com/manpages/noble/man1/needrestart.1.html?&_ga=2.32620542.1557010342.1713949275-1490161839.1713949275#environment
or by appending to the needrestart configuration `echo
"\$nrconf{override_rc}{qr(^google-(shutdown|startup)-scripts\.service$)}
= 0;" >> /etc/needrestart/conf.d/google-guest-agent.conf` which will
disable this behaviour for any future google-guest-agent upgrade or
reinstall.
This bug is to track the work of getting this added to the packaged
`/etc/needrestart/needrestart.conf` configuration.
Similar to the work done for cloud-init @
https://bugs.launchpad.net/ubuntu/+source/needrestart/+bug/2059337
** Affects: needrestart (Ubuntu)
Importance: Undecided
Status: New
** Affects: needrestart (Ubuntu Noble)
Importance: Undecided
Status: New
** Also affects: needrestart (Ubuntu Noble)
Importance: Undecided
Status: New
--
You received this bug notification because you are a member of Ubuntu
Foundations Bugs, which is subscribed to needrestart in Ubuntu.
https://bugs.launchpad.net/bugs/2063442
Title:
needrestart on Ubuntu 24.04 is restarting google-guest-agent startup
and shutdown scrips on reinstall but they should not be restarted
Status in needrestart package in Ubuntu:
New
Status in needrestart source package in Noble:
New
Bug description:
The recent change in Ubuntu 24.04 and needrestart which results in
services being restarted automatically , details @
https://discourse.ubuntu.com/t/noble-numbat-release-
notes/39890#services-restart-on-unattended-upgrade-26, has resulted in
unexpected behaviour on Google GCE ubuntu 24.04 images where if the
google-guest-agent package is reinstalled then needrestart will
restart the `google-startup-scripts.service` and `google-shutdown-
scripts.service` but these should only be run during the lifetime of
the instance and should not be restarted.
It can be worked around by setting `NEEDRESTART_SUSPEND=1` prior to
any re-install as per the needrestart man pages @
https://manpages.ubuntu.com/manpages/noble/man1/needrestart.1.html?&_ga=2.32620542.1557010342.1713949275-1490161839.1713949275#environment
or by appending to the needrestart configuration `echo
"\$nrconf{override_rc}{qr(^google-(shutdown|startup)-scripts\.service$)}
= 0;" >> /etc/needrestart/conf.d/google-guest-agent.conf` which will
disable this behaviour for any future google-guest-agent upgrade or
reinstall.
This bug is to track the work of getting this added to the packaged
`/etc/needrestart/needrestart.conf` configuration.
Similar to the work done for cloud-init @
https://bugs.launchpad.net/ubuntu/+source/needrestart/+bug/2059337
To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/needrestart/+bug/2063442/+subscriptions
More information about the foundations-bugs
mailing list