Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.debian.user > #229916

Re: "Service restarts being deferred"

From David Wright <deblis@lionunicorn.co.uk>
Newsgroups linux.debian.user
Subject Re: "Service restarts being deferred"
Date 2020-12-22 15:40 +0100
Message-ID <BoQZr-64V-11@gated-at.bofh.it> (permalink)
References <BnMuS-6Xj-7@gated-at.bofh.it> <BnN7z-7ro-1@gated-at.bofh.it> <BnOmZ-85A-7@gated-at.bofh.it> <BnQIa-1bQ-5@gated-at.bofh.it> <Bo9rr-4s3-3@gated-at.bofh.it>
Organization linux.* mail to news gateway

Show all headers | View raw


On Sun 20 Dec 2020 at 17:01:31 (+0100), Jesper Dybdal wrote:
> On 2020-12-19 21:05, Kushal Kumaran 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
> > > > > 
> > >From the documentation of Automatic-Reboot, it only has effect for
> > updates that result in the /var/run/reboot-required file being created.
> > 
> > For service restarts, the needrestart configuration would be a better
> > place to start.  The comments in /etc/needrestart/needrestart.conf are
> > instructive:
> > 
> >      # do not restart oneshot services, see also #862840
> >      qr(^apt-daily\.service$) => 0,
> >      qr(^apt-daily-upgrade\.service$) => 0,
> >      qr(^unattended-upgrades\.service$) => 0,
> > 
> >      # don't restart systemd-logind, see #798097
> >      qr(^systemd-logind) => 0,
> > 
> > Do go through those bug reports and experiment at a safe time before
> > changing things here.
> Thanks.  Those bug reports explain why those services are not simply
> restarted, which seems very sensible.
> 
> But the "deferred" restarts seem to be deferred indefinitely, until
> the next reboot.  So I still don't quite understand why an automatic
> reboot is not scheduled in order to get those services restarted.

I would presume a reboot is not scheduled because a reboot is not seen
as a requirement just to restart the odd service: there are separate
commands for that.

But I would also ask how the system is to determine a scheduled time
or occasion to restart services/reboot the system. What criteria, as
sysadmin, do you currently use to make those decisions for yourself?

> (Unless it is, strangely, the "Reboot with users" setting that has
> some influence here, even though there are no logged in users in my
> case.)

Cheers,
David.

Back to linux.debian.user | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread


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