Your message dated Fri, 26 May 2017 15:03:57 +0000
with message-id <[email protected]>
and subject line Bug#862840: fixed in needrestart 2.11-3
has caused the Debian Bug report #862840,
regarding needrestart: terminated itself by restarting apt-daily.service (when 
the script is updated)
to be marked as done.

This means that you claim that the problem has been dealt with.
If this is not the case it is now your responsibility to reopen the
Bug report if necessary, and/or fix the problem forthwith.

(NB: If you are a system administrator and have no idea what this
message is talking about, this may indicate a serious mail system
misconfiguration somewhere. Please contact [email protected]
immediately.)


-- 
862840: http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=862840
Debian Bug Tracking System
Contact [email protected] with problems
--- Begin Message ---
Package: needrestart
Version: 2.11-2
Severity: normal

Dear Maintainer,

The script for apt-daily.service was recently modified by an update.
When this update was installed by `unattended-upgrades`, `needrestart`
restarted the service.  I.e. needrestart terminates unattended-upgrades,
and hence itself.  This causes a few lines of log noise (below), and
does not quite seem desirable.

Technically this could happen to *any* script triggered by a systemd
timer.  At a guess, the behaviour would be similar to if the timer fired
just before someone shuts the system down, so we shouldn't worry *too*
much about this general case.

So either apt-daily.service could be treated specially, or needrestart
could ignore all Type=oneshot services.

The latter raises questions about a longer-running oneshot service
which is security-sensitive...  So I think the simplest solution is
treat apt-daily.service specially.

apt-daily-upgrade.service should also be treated the same way,
because it also runs unattended-upgrades.

I think unattended-upgrades.service should also be treated
the same way, because this is the service that runs unattended-upgrades
on shutdown (if enabled).


May 17 02:48:40 unstable apt.systemd.daily[3046]: Restarting services...
May 17 02:48:40 unstable apt.systemd.daily[3046]:  systemctl restart 
apt-daily.service
May 17 02:48:40 unstable systemd[1]: apt-daily.service: Main process exited, 
code=killed, status=15/TERM
May 17 02:48:40 unstable systemd[1]: Stopped Daily apt download activities.
May 17 02:48:40 unstable systemd[1]: apt-daily.service: Unit entered failed 
state.
May 17 02:48:40 unstable systemd[1]: apt-daily.timer: Adding 11h 58min 
38.111766s random time.
May 17 02:48:40 unstable systemd[1]: apt-daily.service: Failed with result 
'signal'.


-- Package-specific info:
needrestart output:



-- System Information:
Debian Release: 9.0
  APT prefers unstable
  APT policy: (500, 'unstable'), (500, 'testing')
Architecture: armel
 (armv5tel)

Kernel: Linux 3.16.0-4-kirkwood
Locale: LANG=C, LC_CTYPE=C (charmap=ANSI_X3.4-1968)
Shell: /bin/sh linked to /bin/dash
Init: systemd (via /run/systemd/system)

Versions of packages needrestart depends on:
ii  dpkg                       1.18.23
ii  gettext-base               0.19.8.1-2
ii  libintl-perl               1.26-2
ii  libmodule-find-perl        0.13-1
ii  libmodule-scandeps-perl    1.23-1
ii  libproc-processtable-perl  0.53-2
ii  libsort-naturally-perl     1.03-1
ii  libterm-readkey-perl       2.37-1
ii  perl                       5.24.1-2
ii  xz-utils                   5.2.2-1.2+b1

Versions of packages needrestart recommends:
ii  libpam-systemd  232-23

Versions of packages needrestart suggests:
pn  needrestart-session | libnotify-bin  <none>

-- Configuration Files:
/etc/needrestart/needrestart.conf changed:
$nrconf{restart} = 'a';
$nrconf{blacklist} = [
    # ignore sudo (not a daemon)
    qr(^/usr/bin/sudo(\.dpkg-new)?$),
    # ignore DHCP clients
    qr(^/sbin/(dhclient|dhcpcd5|pump|udhcpc)(\.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(^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(^network-manager) => 0,
    qr(^NetworkManager) => 0,
    qr(^wpa_supplicant) => 0,
    qr(^openvpn) => 0,
    qr(^quagga) => 0,
    qr(^tinc) => 0,
    # gettys
    qr(^getty@.+\.service) => 0,
    # systemd --user
    qr(^user@\d+\.service) => 0,
    # misc
    qr(^zfs-fuse) => 0,
    qr(^mythtv-backend) => 0,
    qr(^xendomains) => 0,
    qr(^lxcfs) => 0,
    # workaround for broken systemd-journald
    # (see also Debian Bug#771122 & #771254)
    qr(^systemd-journald) => 0,
    # more systemd stuff
    # (see also Debian Bug#784238 & #784437)
    qr(^emergency\.service$) => 0,
    qr(^rescue\.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$|drm$|dev/)),
    # aio(7) mapping
    qr(^/\[aio\]),
    # Oil Runtime Compiler's JIT files
    qr(/orcexec\.[\w\d]+( \(deleted\))?$),
];
$nrconf{skip_mapfiles} = (-d '/proc/sys/kernel/grsecurity' ? -1 : 0);
if(-d q(/etc/needrestart/conf.d)) {
      foreach my $fn (sort </etc/needrestart/conf.d/*.conf>) {
              print STDERR "$LOGPREF eval $fn\n" if($nrconf{verbose});
              eval do { local(@ARGV, $/) = $fn; <>};
              die "Error parsing $fn: $@" if($@);
      }
}


-- no debconf information

--- End Message ---
--- Begin Message ---
Source: needrestart
Source-Version: 2.11-3

We believe that the bug you reported is fixed in the latest version of
needrestart, which is due to be installed in the Debian FTP archive.

A summary of the changes between this version and the previous one is
attached.

Thank you for reporting the bug, which will now be closed.  If you
have further comments please address them to [email protected],
and the maintainer will reopen the bug report if appropriate.

Debian distribution maintenance software
pp.
Patrick Matthäi <[email protected]> (supplier of updated needrestart package)

(This message was generated automatically at their request; if you
believe that there is a problem with it please contact the archive
administrators by mailing [email protected])


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA256

Format: 1.8
Date: Fri, 26 May 2017 15:45:04 +0200
Source: needrestart
Binary: needrestart
Architecture: source all
Version: 2.11-3
Distribution: unstable
Urgency: high
Maintainer: Patrick Matthäi <[email protected]>
Changed-By: Patrick Matthäi <[email protected]>
Description:
 needrestart - check which daemons need to be restarted after library upgrades
Closes: 852864 862840
Changes:
 needrestart (2.11-3) unstable; urgency=high
 .
   * Add patch 03-perl-warning to fix a warning from Perl triggered in version
     5.20.
   * Merge 2.11-2~bpo8+1 changelog.
   * Add patch 04-ignore-systemd-services to ignore apt-daily.service,
     apt-daily-upgrade.service, unattended-upgrades.service and
     rc-local.service.
     Closes: #862840, #852864
Checksums-Sha1:
 07ef3760ede4015e29c906002b69e297e2631b70 1751 needrestart_2.11-3.dsc
 40cd0f99c0f99862af7b79f5452f00592f8a196a 7544 needrestart_2.11-3.debian.tar.xz
 105d75291b0050557cc6a11ad3d415a83b5848c2 46770 needrestart_2.11-3_all.deb
 23c9844d3da97835a4402736f149473f39b85569 5017 
needrestart_2.11-3_amd64.buildinfo
Checksums-Sha256:
 e6b1f7d3f4ae8f4d2ec5f19fbd9f84bf00644a911983e8db2bdb3edd2547b1af 1751 
needrestart_2.11-3.dsc
 274dfdc71defd5742c830cb5169d1ded0623405b8f61e554dcbdfd9bab090424 7544 
needrestart_2.11-3.debian.tar.xz
 622668f1b04c2e89e5ce33dbb47a62758e68b136b62ef2b0f7fc5344e3d8fb2b 46770 
needrestart_2.11-3_all.deb
 287873ea1964a1604a008bedb61648f6f2ed34e5d030dea312328857878f99bd 5017 
needrestart_2.11-3_amd64.buildinfo
Files:
 87739370421f8ba612418f8e17f0b01d 1751 admin optional needrestart_2.11-3.dsc
 541d04eed3b197451ed3921529231a61 7544 admin optional 
needrestart_2.11-3.debian.tar.xz
 3ebbf7506620f49a3acfcdfbb89dacc1 46770 admin optional 
needrestart_2.11-3_all.deb
 1400d48df7ac2dde19cf2b2ab5fe7525 5017 admin optional 
needrestart_2.11-3_amd64.buildinfo

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1

iQIcBAEBCAAGBQJZKDSsAAoJEBLZsEqQy9jkIPIP/A1UOKmAFgiPsolIdApTZ2mo
p9ni+UmCLxjPstTFopCJmrKFPwhxM5vwkOoHn2nxKn2wE1izW2PMSPx2hXVfU1nt
95eLb96A03nbltdOUGGlU1ae9qyVtPx7/cjTcI1cy3lKqns9C1qrwJsb5nSfCy0B
RKV/KrBUwk/j+EGsIVVprbklytYsrf+JlCEPS1aA5A1CsVNIxeMdZixHU9EKyKXP
sXOC6tHWC7p3xuAugv4x72XBVSv+ayL8DDqgtOn67v0zgNKRT3TDA447UDReTIRS
7ynG9XeFdBqcyu55KE4cDd2KYvzn3Va9MNx518nOFUUQQxVLz5cPMyA5P9EWV1Ls
5ALKQ4LqkPkM70l64ZbrWJ+N81IJl9iQLV1n2WO+G/7yevhWtLVKZUBrtIpqBtPD
QPliXUtm2+GrApQHry5VngfsuameU7be0phNRzbuQwHuWQTDsML8tnoNYBjK32Rb
WUg9qbkjwn8MYOZL952QeYrA/IDjdC3WPnDWTS/vf0FUZ2kpEkLZHjcpPpsxu0Up
mdp+NV3Bo6FKz+ctil7hd/YAhj76MducQEz+daiK+v0g19wyfvqokhBD2TlGgwY6
xKJQEW/j0f+XdxkHkvsa4UMaSa40XwtmTc0mRLPVGgJWClwTjMuMJZEWqLUxBdO2
TL577G9rxLeuD5Lh9+p0
=KTla
-----END PGP SIGNATURE-----

--- End Message ---

Reply via email to