** Description changed:

+ [Impact]
+ 
+ There's likely a fair number of custom services out there that are
+ similar in nature to cloud-init, unattended-upgrade and the likes.
+ Rather than forcing every user to track down and debug this issue,
+ needrestart should instead have some sort of "self-preservation
+ instinct" and exclude itself from the default restart list.
+ 
+ While this issue isn't particularly new, it has become much more urgent
+ in Noble onwards as we've modified it to default to silently restarting
+ services.
+ 
+ [Test plan]
+ 
+ The fix also includes an autopkgtest for that very issue.
+ In addition, to test this, one can do in a fresh container with the updated 
needrestart installed:
+ 
+ # THIS WILL REINSTALL libc6 ON A LOOP ON BUGGY SYSTEMS!!!
+ sudo systemd-run -u no-self-restart sh -c 'set -e; apt update; apt reinstall 
-y libc6; sleep 5; touch /tmp/did-not-self-restart'
+ 
+ If the bug is fixed, you should find /tmp/did-not-self-restart with a
+ recent mtime after a few seconds. Otherwise, it'll keep reinstalling
+ libc6 in a loop.
+ 
+ [Regression potential]
+ 
+ The most likely regression would be some crash due to some obscure Perl
+ idiosyncrasy.
+ 
+ [Other info]
+ 
+ [Original report]
+ 
  This is an expansion on bug 2059337. There's likely a fair number of
  custom services out there that are similar in nature to cloud-init,
  unattended-upgrade and the likes. Rather than forcing every user to
  track down and debug this issue, needrestart should instead have some
  sort of "self-preservation instinct" and exclude itself from the default
  restart list.
  
  While this issue isn't particularly new, it has become much more urgent
  in Noble onwards as we've modified it to default to silently restarting
  services.

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/2067482

Title:
  needrestart terminates itself on updates

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/needrestart/+bug/2067482/+subscriptions


-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to