Package: debian-goodies
Version: 0.61
Severity: normal
Tags: patch

Hello Javier,
I've just noticed that checkrestart fails to show getty processes,
when they need to be restarted.

  # checkrestart 
  Found 5 processes using old versions of upgraded files
  (1 distinct program)
  (1 distinct packages)
  These processes do not seem to have an associated init script to restart them:
  # checkrestart -v
  Found 5 processes using old versions of upgraded files
  (1 distinct program)
  Process /sbin/getty (PID: 2528) 
  List of deleted files in use:
          /sbin/getty (deleted)
  Process /sbin/getty (PID: 2527) 
  List of deleted files in use:
          /sbin/getty (deleted)
  Process /sbin/getty (PID: 2529) 
  List of deleted files in use:
          /sbin/getty (deleted)
  Process /sbin/getty (PID: 2530) 
  List of deleted files in use:
          /sbin/getty (deleted)
  Process /sbin/getty (PID: 2531) 
  List of deleted files in use:
          /sbin/getty (deleted)
  Running:['dpkg-query', '--search', '/sbin/getty']
  Reading line: util-linux: /sbin/getty
  
  (1 distinct packages)
  These processes do not seem to have an associated init script to restart them:

This seems to be wrong: getty processes need to be restarted (with a
"killall -TERM getty", since they are in respawn...), checkrestart
tells me that there are 5 processes that I should restart, but it
does not tell me which program it's talking about.
I need to use the "-v" option to figure it out...

This seems to be caused by an over-fixing of bug #673045, which just
talked about screen and didn't mention util-linux at all.

The attached patch (which I think is so trivial that it is not
copyrighted) fixes the issue for me:

  # ./a/checkrestart 
  Found 5 processes using old versions of upgraded files
  (1 distinct program)
  (1 distinct packages)
  # ./b/checkrestart 
  Found 5 processes using old versions of upgraded files
  (1 distinct program)
  (1 distinct packages)
  These processes do not seem to have an associated init script to restart them:
  util-linux:
          2528    /sbin/getty
          2527    /sbin/getty
          2529    /sbin/getty
          2530    /sbin/getty
          2531    /sbin/getty


Please apply this patch and try to have it accepted for migration
into testing, if possible.

Thanks for your time!
Bye.


-- System Information:
Debian Release: wheezy/sid
  APT prefers testing
  APT policy: (800, 'testing'), (500, 'unstable')
Architecture: amd64 (x86_64)

Kernel: Linux 3.2.0-3-amd64 (SMP w/2 CPU cores)
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/bash

Versions of packages debian-goodies depends on:
ii  curl                      7.26.0-1
ii  dctrl-tools [grep-dctrl]  2.22.2
ii  perl                      5.14.2-13
ii  python                    2.7.3~rc2-1
ii  whiptail                  0.52.14-10

Versions of packages debian-goodies recommends:
ii  lsof  4.86+dfsg-1

Versions of packages debian-goodies suggests:
ii  popularity-contest  1.55
ii  xdg-utils           1.1.0~rc1+git20111210-6
ii  zenity              3.4.0-2

-- no debconf information

Attachment: checkrestart_do_not_ignore_util-linux.diff.gz
Description: GNU Zip compressed data

Reply via email to