[whatmaps] Bug#791569: whatmaps: Fails to restart apache2 on Jessie and later

Santiago Garcia Mantinan manty at debian.org
Mon Jul 6 12:24:32 CEST 2015


Package: whatmaps
Version: 0.0.9-1
Severity: important
Tags: patch

Hi!

I have found after running unattended-upgrades with whatmaps installed that
apache2 was not being restarted on the last openssl upgrade.

I went to see what whas happening and the log was quite clear, whatmaps was
not able to guess that the apache2 binary which now comes in the apache2-bin
package had its start scripts on the apache2 package.

Adding this line to debiandistro.py made it work ok:

--- /usr/lib/python2.7/dist-packages/whatmaps/debiandistro.py~	2014-12-28
--- /15:03:58.000000000 +0100
+++ /usr/lib/python2.7/dist-packages/whatmaps/debiandistro.py	2015-07-06
12:11:42.516301645 +0200
@@ -43,6 +43,7 @@
     _pkg_services = { 'apache2-mpm-worker':  [ 'apache2' ],
                       'apache2-mpm-prefork': [ 'apache2' ],
                       'apache2.2-bin':       [ 'apache2' ],
+                      'apache2-bin':         [ 'apache2' ],
                       'dovecot-imapd':       [ 'dovecot' ],
                       'dovecot-pop3d':       [ 'dovecot' ],
                       'exim4-daemon-light':  [ 'exim4' ],

I think it would be good to have this fix (or whatever you see fit) rolled
as a security upgrade or at least as a stable update.

Thanks in advance.

-- System Information:
Debian Release: 8.1
  APT prefers stable
  APT policy: (990, 'stable'), (500, 'stable-updates'), (500, 'unstable'), (500, 'oldstable'), (101, 'experimental')
Architecture: amd64 (x86_64)
Foreign Architectures: i386

Kernel: Linux 4.1.1 (SMP w/4 CPU cores)
Locale: LANG=gl_ES.UTF-8, LC_CTYPE=gl_ES.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/bash
Init: sysvinit (via /sbin/init)

Versions of packages whatmaps depends on:
ii  debconf [debconf-2.0]  1.5.56
ii  lsb-release            4.1+Debian13+nmu1
ii  python                 2.7.9-1
ii  python-apt             0.9.3.11
ii  python-pkg-resources   5.5.1-1

whatmaps recommends no packages.

whatmaps suggests no packages.

-- Configuration Files:
/etc/apt/apt.conf.d/20services changed:
// Set to 1 or true to enable service restarts on security updates
Whatmaps::Enable-Restart "1";
// What updates are considered security updates
Whatmaps::Security-Update-Origins {
   "${distro_id} stable";
   "${distro_id} ${distro_codename}-security";
};


-- debconf information:
* whatmaps/enable_service_restarts: true



More information about the whatmaps mailing list