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

Bug#212117: ssh: init stop/restart action should use --retry



Package: ssh
Version: 1:3.6.1p2-3
Severity: normal

On one of my slower machines I lost sshd completely after upgrading
to the latest security update (the unstable version has the same bug
as well).  The reason is that the init script tried to start before
the old sshd is completely stopped:

Sep 22 05:03:56 host sshd[18705]: Received signal 15; terminating.
Sep 22 05:03:58 host sshd[1759]: error: Bind to port 22 on 0.0.0.0 failed: Address already in use.
Sep 22 05:04:16 host sshd[1759]: fatal: Cannot bind any address.

This is probably because the 2-second delay in the init script is
not sufficient.

Rather than extending the delay, please call start-stop-daemon --stop
with --retry so that it does not return until the daemon is truly dead.

Thanks,

-- System Information
Debian Release: testing/unstable
Kernel Version: Linux gondolin 2.4.22-1-686-smp #1 SMP Sat Sep 6 00:06:59 EST 2003 i686 GNU/Linux

Versions of the packages ssh depends on:
ii  adduser        3.51           Add and remove users and groups
ii  debconf        1.3.8          Debian configuration management system
ii  libc6          2.3.2-7        GNU C Library: Shared libraries and Timezone
ii  libpam-modules 0.76-13        Pluggable Authentication Modules for PAM
ii  libpam0g       0.76-13        Pluggable Authentication Modules library
ii  libssl0.9.7    0.9.7b-2       SSL shared libraries
ii  libwrap0       7.6-ipv6.1-3   Wietse Venema's TCP wrappers library
ii  zlib1g         1.1.4-14       compression library - runtime




Reply to: