Package: needrestart
Version: 3.7-3.1
Severity: important

SInce the update to 3.7-3.1, needrestart always triggers a restart of
all running LXC containers. Not a restart of lxc.service itself, but a
restart of each and every container using "lxc-stop --reboot --name foo".

Reverting back to 3.7-3, such restarts are only triggered when they are
required.

-- System Information:
Debian Release: trixie/sid
  APT prefers unstable-debug
  APT policy: (500, 'unstable-debug'), (500, 'testing-debug'), (500, 
'stable-debug'), (500, 'oldstable-debug'), (500, 'unstable'), (500, 'testing'), 
(500, 'stable'), (500, 'oldstable'), (1, 'experimental-debug'), (1, 
'experimental')
Architecture: amd64 (x86_64)
Foreign Architectures: i386

Kernel: Linux 6.11.5-amd64 (SMP w/8 CPU threads; PREEMPT)
Locale: LANG=fr_FR.UTF-8, LC_CTYPE=fr_FR.UTF-8 (charmap=UTF-8), LANGUAGE not set
Shell: /bin/sh linked to /usr/bin/dash
Init: systemd (via /run/systemd/system)
LSM: AppArmor: enabled

Versions of packages needrestart depends on:
ii  dpkg                       1.22.11
ii  gettext-base               0.22.5-2
ii  libintl-perl               1.33-1
ii  libmodule-find-perl        0.16-2
ii  libproc-processtable-perl  0.636-1+b3
ii  libsort-naturally-perl     1.03-4
ii  libterm-readkey-perl       2.38-2+b4
ii  perl                       5.40.0-7
ii  xz-utils                   5.6.3-1+b1

Versions of packages needrestart recommends:
ii  libpam-systemd  257~rc2-3
ii  systemd         257~rc2-3

Versions of packages needrestart suggests:
pn  iucode-tool    <none>
ii  libnotify-bin  0.8.3-1+b2

-- Configuration Files:
/etc/needrestart/needrestart.conf changed:
$nrconf{restart} = 'a';
$nrconf{blacklist} = [
    # ignore sudo (not a daemon)
    qr(^/usr/bin/sudo(\.dpkg-new)?$),
    # ignore apt-get (Debian Bug#784237)
    qr(^/usr/bin/apt-get(\.dpkg-new)?$),
];
$nrconf{override_rc} = {
    # DBus
    qr(^dbus) => 0,
    # display managers
    qr(^gdm) => 0,
    qr(^greetd) => 0,
    qr(^kdm) => 0,
    qr(^nodm) => 0,
    qr(^sddm) => 0,
    qr(^wdm) => 0,
    qr(^xdm) => 0,
    qr(^lightdm) => 0,
    qr(^slim) => 0,
    qr(^lxdm) => 0,
    # networking stuff
    qr(^bird) => 0,
    qr(^network) => 0,
    qr(^NetworkManager) => 0,
    qr(^ModemManager) => 0,
    qr(^wpa_supplicant) => 0,
    qr(^ifup) => 0,
    qr(^openvpn) => 0,
    qr(^quagga) => 0,
    qr(^frr) => 0,
    qr(^tinc) => 0,
    qr(^(open|free|libre|strong)swan) => 0,
    qr(^bluetooth) => 0,
    # gettys
    qr(^getty@.+\.service) => 0,
    qr(^serial-getty@.+\.service) => 0,
    # systemd --user
    qr(^user@\d+\.service) => 0,
    # misc
    qr(^usbguard\.service$) => 0,
    qr(^zfs-fuse) => 0,
    qr(^mythtv-backend) => 0,
    qr(^xendomains) => 0,
    qr(^lxcfs) => 0,
    qr(^libvirt) => 0,
    qr(^virtlogd) => 0,
    qr(^virtlockd) => 0,
    qr(^docker) => 0,
    # systemd stuff
    # (see also Debian Bug#784238 & #784437)
    qr(^emergency\.service$) => 0,
    qr(^rescue\.service$) => 0,
    qr(^elogind) => 0,
    # do not restart oneshot services, see also #862840
    qr(^apt-daily\.service$) => 0,
    qr(^apt-daily-upgrade\.service$) => 0,
    qr(^unattended-upgrades\.service$) => 0,
    # do not restart oneshot services from systemd-cron, see also #917073
    qr(^cron-.*\.service$) => 0,
    # ignore rc-local.service, see #852864
    qr(^rc-local\.service$) => 0,
    # don't restart systemd-logind, see #798097
    qr(^systemd-logind) => 0,
};
$nrconf{override_cont} = {
};
$nrconf{blacklist_interp} = [
    # ignore temporary files
    qr(^/tmp/),
    qr(^/var/),
    qr(^/run/),
];
$nrconf{blacklist_mappings} = [
    # special device paths
    qr(^/(SYSV00000000( \(deleted\))?|drm(\s|$)|dev/)),
    # ignore memfd mappings
    qr(^/memfd:),
    # aio(7) mapping
    qr(^/\[aio\]),
    # Oil Runtime Compiler's JIT files
    qr#/orcexec\.[\w\d]+( \(deleted\))?$#,
    # plasmashell (issue #65)
    qr(/#\d+( \(deleted\))?$),
    # Java Native Access (issues #142 #185)
    qr#/jna\d+\.tmp( \(deleted\))?$#,
    # temporary stuff
    qr#^(/var)?/tmp/#,
    qr#^(/var)?/run/#,
];
$nrconf{skip_mapfiles} = -1;
$nrconf{kernelhints} = -1;
if(-d q(/etc/needrestart/conf.d)) {
      foreach my $fn (sort </etc/needrestart/conf.d/*.conf>) {
              print STDERR "$LOGPREF eval $fn\n" if($nrconf{verbosity} > 1);
              eval do { local(@ARGV, $/) = $fn; <>};
              die "Error parsing $fn: $@" if($@);
      }
}


-- no debconf information

Reply via email to