Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > linux.debian.user > #229845
| From | Jesper Dybdal <jd-debian-user@dybdal.dk> |
|---|---|
| Newsgroups | linux.debian.user |
| Subject | Re: "Service restarts being deferred" |
| Date | 2020-12-19 18:40 +0100 |
| Message-ID | <BnOmZ-85A-7@gated-at.bofh.it> (permalink) |
| References | <BnMuS-6Xj-7@gated-at.bofh.it> <BnN7z-7ro-1@gated-at.bofh.it> |
| Organization | linux.* mail to news gateway |
On 2020-12-19 17:14, Dan Ritter wrote: > Jesper Dybdal wrote: >> I run Buster with unattended updates configured to allow reboots. >> >> Sometimes after an update, the log contains: >> >>> Service restarts being deferred: >>> ??systemctl restart systemd-logind.service >>> ??systemctl restart unattended-upgrades.service >> I don't understand why these services are not restarted, if necessary >> through a reboot. >> >> I want my system to be able to run truly unattended for a long time, so >> necessary restarts should be done without waiting for manual intervention.?? >> And if the restarts are not necessary, why are they there at all, though >> deferred? >> >> So what have I misunderstood? > In your /etc/apt/apt.conf.d, edit a file named 50unattended-upgrades > > // Automatically reboot *WITHOUT CONFIRMATION* if > // the file /var/run/reboot-required is found after the upgrade > Unattended-Upgrade::Automatic-Reboot "true"; > > // Automatically reboot even if there are users currently logged > // in. > Unattended-Upgrade::Automatic-Reboot-WithUsers "true"; > > Without those two lines, you get the behavior you currently > have. > > Not everyone wants automatic reboots; not everyone wants > automatic reboots even with someone logged in. Thanks. I already have Automatic-Reboot set, and it correctly causes reboot after for instance kernel upgrades. I do not have Automatic-Reboot-WithUsers set, since I did not imagine it would make a difference when there actually are no users logged in. But I'll try setting it also and see if that somehow makes a difference. -- Jesper Dybdal https://www.dybdal.dk
Back to linux.debian.user | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread
"Service restarts being deferred" Jesper Dybdal <jd-debian-user@dybdal.dk> - 2020-12-19 16:40 +0100
Re: "Service restarts being deferred" Dan Ritter <dsr@randomstring.org> - 2020-12-19 17:20 +0100
Re: "Service restarts being deferred" Jesper Dybdal <jd-debian-user@dybdal.dk> - 2020-12-19 18:40 +0100
Re: "Service restarts being deferred" Kushal Kumaran <kushal@locationd.net> - 2020-12-19 21:10 +0100
Re: "Service restarts being deferred" Jesper Dybdal <jd-debian-user@dybdal.dk> - 2020-12-20 17:10 +0100
Re: "Service restarts being deferred" David Wright <deblis@lionunicorn.co.uk> - 2020-12-22 15:40 +0100
Re: "Service restarts being deferred" Jesper Dybdal <jd-debian-user@dybdal.dk> - 2020-12-23 18:30 +0100
Re: "Service restarts being deferred" Andrei POPESCU <andreimpopescu@gmail.com> - 2020-12-23 19:40 +0100
Re: "Service restarts being deferred" David Wright <deblis@lionunicorn.co.uk> - 2020-12-24 02:30 +0100
csiph-web