Public bug reported: Binary package hint: lsb
lsb-base: /lib/lsb/init-functions appears to let the script /etc/init.d/ssh, from package openssh-server, continue with status OK even if the daemon fails to launch. I can run the script, but no sshd is launched: $ sudo /etc/init.d/ssh start * Starting OpenBSD Secure Shell server sshd [ OK ] $ pgrep -l sshd || echo Not There Not There If I launch sshd manually, it gives me a proper error message: sudo /usr/sbin/sshd -Dd debug1: sshd version OpenSSH_5.1p1 Debian-6ubuntu1 [snip] debug1: Bind to port 22 on 192.168.0.5. Bind to port 22 on 192.168.0.5 failed: Cannot assign requested address. I expect that in such a situation /etc/init.d/ssh should show an error, something like this: $ sudo /etc/init.d/ssh start * Starting OpenBSD Secure Shell server sshd [ FAIL] Starting sshd failed : Bind to port 22 on 192.168.0.5 failed: Cannot assign requested address. $ apt-cache policy lsb-base lsb-base: Installed: 4.0-0ubuntu5 Candidate: 4.0-0ubuntu5 Version table: *** 4.0-0ubuntu5 0 500 http://fi.archive.ubuntu.com karmic/main Packages 100 /var/lib/dpkg/status $ lsb_release -rd Description: Ubuntu 9.10 Release: 9.10 If someone misconfigures the server and then uses /etc/init.d/ssh to restart the server. They will get locked out (aka denial of service) if they did not plan carefully enough to test which processes are running, that's not something your average sysadmin should be expected to do. The script should work... ProblemType: Bug Architecture: i386 Date: Thu Oct 22 22:21:28 2009 DistroRelease: Ubuntu 9.10 Package: lsb-base 4.0-0ubuntu5 PackageArchitecture: all ProcEnviron: SHELL=/bin/bash PATH=(custom, no user) LANG=en_US.UTF-8 LANGUAGE= ProcVersionSignature: Ubuntu 2.6.31-14.48-generic SourcePackage: lsb Uname: Linux 2.6.31-14-generic i686 XsessionErrors: (polkit-gnome-authentication-agent-1:2635): GLib-CRITICAL **: g_once_init_leave: assertion `initialization_value != 0' failed ** Affects: lsb (Ubuntu) Importance: Undecided Status: New ** Tags: apport-bug i386 -- /etc/init.d/ssh gives OK status even if daemon fails to launch https://bugs.launchpad.net/bugs/458476 You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs