[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#422781: /etc/init.d/hplip: sleeps for 2 seconds after stopping each daemon

Package: hplip
Version: 1.6.10-4
Severity: normal
File: /etc/init.d/hplip

/etc/init.d/hplip contains:
stop_daemon() {
        if start-stop-daemon --stop --quiet --pidfile ${PIDFILE} \
                --retry 10 --name ${PROCNAME} \
                >/dev/null 2>&1 ; then
                        # success
                        # FIXME: change hpiod so that this is not necessary
                        sleep 2

The script later calls stop_daemon once for each of the two daemons in hplip.

Documenting this in a bugreport so it does not get lost as a perpetual FIXME.

Does hpiod still need this?  If not, removing it would cut 4 seconds off of
shutdown time.

Even if hpiod still requires this sleep, restructuring the init script
shutdown code to only sleep for hpiod and not for hpssd would cut 2 seconds
off of shutdown time.

- Josh Triplett

-- System Information:
Debian Release: lenny/sid
  APT prefers unstable
  APT policy: (500, 'unstable'), (1, 'experimental')
Architecture: i386 (i686)

Kernel: Linux 2.6.18-josh (PREEMPT)
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 hplip depends on:
ii  adduser                       3.102      Add and remove users and groups
ii  coreutils                     5.97-5.3   The GNU core utilities
ii  cupsys                        1.2.7-4    Common UNIX Printing System(tm) - 
ii  hplip-data                    1.6.10-4   HP Linux Printing and Imaging - da
ii  libc6                         2.5-7      GNU C Library: Shared libraries
ii  libcupsys2                    1.2.7-4    Common UNIX Printing System(tm) - 
ii  libgcc1                       1:4.1.2-6  GCC support library
ii  libsnmp10                     5.3.1-5    NET SNMP (Simple Network Managemen
ii  libssl0.9.8                   0.9.8e-4   SSL shared libraries
ii  libstdc++6                    4.1.2-6    The GNU Standard C++ Library v3
ii  libusb-0.1-4                  2:0.1.12-7 userspace USB programming library
ii  lsb-base                      3.1-23.1   Linux Standard Base 3.1 init scrip
ii  python                        2.4.4-3    An interactive high-level object-o
ii  python-qt3                    3.16-1.2   Qt3 bindings for Python
ii  python-support                0.6.3      automated rebuilding support for p

Versions of packages hplip recommends:
ii  cupsys-client            1.2.7-4         Common UNIX Printing System(tm) - 
ii  hpijs                    2.6.10+1.6.10-4 HP Linux Printing and Imaging - gs
ii  hpijs-ppds               2.6.10+1.6.10-4 HP Linux Printing and Imaging - HP
ii  linuxprinting.org-ppds   20061031-1      linuxprinting.org printer support 
ii  python-reportlab         2.0dfsg-1       ReportLab library to create PDF do

-- no debconf information

Reply to: