Logic to restart services on NSS upgrade misses some

Bug #505838 reported by Matt Zimmerman
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
eglibc (Ubuntu)
Fix Released
Undecided
Canonical Foundations Team
Lucid
Fix Released
Undecided
Canonical Foundations Team

Bug Description

(Reading database ... 259187 files and directories currently installed.)
Preparing to replace libc6 2.11~20100104-0ubuntu2 (using .../libc6_2.11~20100104-0ubuntu3_i386.deb) ...
Checking for services that may need to be restarted...
Checking init scripts...
Unpacking replacement libc6 ...
Setting up libc6 (2.11~20100104-0ubuntu3) ...
Checking for services that may need to be restarted...
Checking init scripts...
WARNING: init script for atd not found.
WARNING: init script for cron not found.
WARNING: init script for ssh not found.
WARNING: init script for gdm not found.

Restarting services possibly affected by the upgrade:
  rsync: restarting...done.
  postfix: restarting...done.
  openbsd-inetd: restarting...done.
  dovecot: restarting...done.
  cups: restarting...done.

Services restarted successfully.

cron and the other daemons which received WARNINGs should have been restarted, but were not:
root 1261 0.0 0.0 2088 272 ? Ss 2009 0:03 cron
root 922 0.0 0.0 8172 1012 ? Ss 2009 2:08 gdm-binary
daemon 1260 0.0 0.0 1960 56 ? Ss 2009 0:00 atd
root 8246 0.0 0.0 5392 440 ? Ss Jan05 0:00 /usr/sbin/sshd

All of the ones which worked have plain init scripts:

mizar:[~] ls -l /etc/init.d/{rsync,postfix,openbsd-inetd,dovecot,cups}
-rwxr-xr-x 1 root root 3072 2009-10-15 20:15 /etc/init.d/cups
-rwxr-xr-x 1 root root 5427 2009-02-13 03:19 /etc/init.d/dovecot
-rwxr-xr-x 1 root root 2434 2009-11-25 20:01 /etc/init.d/openbsd-inetd
-rwxr-xr-x 1 root root 4695 2008-06-01 14:48 /etc/init.d/postfix
-rwxr-xr-x 1 root root 4310 2009-06-25 14:12 /etc/init.d/rsync

While the ones which failed have symlinks to /lib/init/upstart-job:

mizar:[~] ls -l /etc/init.d/{atd,cron,ssh,gdm}
lrwxrwxrwx 1 root root 21 2009-10-02 09:49 /etc/init.d/atd -> /lib/init/upstart-job
lrwxrwxrwx 1 root root 21 2009-10-02 09:49 /etc/init.d/cron -> /lib/init/upstart-job
lrwxrwxrwx 1 root root 21 2010-01-11 10:40 /etc/init.d/gdm -> /lib/init/upstart-job

Except ssh:

-rwxr-xr-x 1 root root 3899 2010-01-04 15:10 /etc/init.d/ssh

which has an upstart job but seems to have left its init script behind (no rc?.d symlinks though).

The code is:

                    invoke-rc.d --query ${service} start 2>/dev/null || status=$?
                    if [ "$status" = "104" ] ; then
                        services="$service $services"
                    else
                        echo "WARNING: init script for $service not found."
                    fi

mizar:[~] for d in atd cron gdm ssh; do invoke-rc.d --query $d start; echo "$d: $?"; done
atd: 105
cron: 105
gdm: 105
ssh: 105

ProblemType: Bug
Architecture: i386
Date: Mon Jan 11 10:42:19 2010
DistroRelease: Ubuntu 10.04
Package: libc6 2.11~20100104-0ubuntu3
ProcEnviron:
 LANGUAGE=en_US.UTF-8
 LC_COLLATE=C
 PATH=(custom, user)
 LANG=en_US.UTF-8
 SHELL=/bin/zsh
ProcVersionSignature: Ubuntu 2.6.31-14.48-generic
SourcePackage: eglibc
Tags: lucid
Uname: Linux 2.6.31-14-generic i686

Related branches

Revision history for this message
Matt Zimmerman (mdz) wrote :
Changed in eglibc (Ubuntu):
assignee: nobody → Canonical Foundations Team (canonical-foundations)
Kees Cook (kees)
Changed in eglibc (Ubuntu Lucid):
milestone: none → ubuntu-10.04-beta-2
Revision history for this message
Launchpad Janitor (janitor) wrote :

This bug was fixed in the package eglibc - 2.11.1-0ubuntu5

---------------
eglibc (2.11.1-0ubuntu5) lucid; urgency=low

  * Apply from the 2.11-x86 branch:
    - Append -U__i686 in ASFLAGS on x86.
    - Backport 32bit SSSE3/SSE4 optimized memcmp and strcmp from trunk.
    - Correct unwind info in strcmp-sse4.S.
    - Fix sysdeps/i386/i686/multiarch/memcmp-ssse3.S.
  * Extend logic to restart upstart based services on NSS upgrade.
    LP: #505838.
 -- Matthias Klose <email address hidden> Sun, 21 Mar 2010 15:11:00 +0100

Changed in eglibc (Ubuntu Lucid):
status: New → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.