root@needrestart-self:~# dpkg -l needrestart | tail -n 1
ii needrestart 3.6-7ubuntu4.1 all check which daemons need to be restarted after library upgrades
root@needrestart-self:~# 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'
Running as unit: no-self-restart.service; invocation ID: d833631b9b1443f4b68fd3c7ab4877a1
root@needrestart-self:~# ls -lh /tmp/did-not-self-restart
-rw-r--r-- 1 root root 0 Jul 11 09:24 /tmp/did-not-self-restart
root@needrestart-self:~# date
Thu Jul 11 09:24:20 UTC 2024
root@needrestart-self:~# systemctl status no-self-restart
Unit no-self-restart.service could not be found.
Hi, verification done in a fresh Noble container:
root@needrestar t-self: ~# dpkg -l needrestart | tail -n 1 t-self: ~# 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' restart. service; invocation ID: d833631b9b1443f 4b68fd3c7ab4877 a1 t-self: ~# ls -lh /tmp/did- not-self- restart not-self- restart t-self: ~# date t-self: ~# systemctl status no-self-restart restart. service could not be found.
ii needrestart 3.6-7ubuntu4.1 all check which daemons need to be restarted after library upgrades
root@needrestar
Running as unit: no-self-
root@needrestar
-rw-r--r-- 1 root root 0 Jul 11 09:24 /tmp/did-
root@needrestar
Thu Jul 11 09:24:20 UTC 2024
root@needrestar
Unit no-self-