[pkg-lighttpd] Bug#355865: "ssh hostname sudo /etc/init.d/lighttpd start" hangs ssh session

Marcello Nuccio marcenuc at cicaia160.unimo.it
Wed Mar 8 12:05:43 UTC 2006

Package: lighttpd
Version: 1.4.8-2
Severity: normal

If started through ssh, lighttpd hangs ssh session.

  ssh localhost sudo /etc/init.d/lighttpd start
  ssh localhost sudo /usr/sbin/lighttpd -f /etc/lighttpd/lighttpd.conf

the server starts-up but you will need to hit Ctrl-C to exit the ssh
session.  This makes impossible to use tools like capistrano.

I have fixed the problem with this patch:

--- /etc/init.d/lighttpd.orig   2006-03-08 13:02:10.000000000 +0100
+++ /etc/init.d/lighttpd        2006-03-08 11:54:56.000000000 +0100
@@ -28,7 +28,7 @@
 case "$1" in
        log_daemon_msg "Starting $DESC" $NAME
-    if ! start-stop-daemon --start --quiet  \
+    if ! start-stop-daemon --start --quiet --background \
         --pidfile $PIDFILE --exec $DAEMON -- $DAEMON_OPTS ; then
         log_end_msg 1
         exit 1

-- System Information:
Debian Release: testing/unstable
  APT prefers testing
  APT policy: (500, 'testing'), (498, 'unstable')
Architecture: i386 (i686)
Shell:  /bin/sh linked to /bin/bash
Kernel: Linux
Locale: LANG=C, LC_CTYPE=C (charmap=ANSI_X3.4-1968)

Versions of packages lighttpd depends on:
ii  libbz2-1.0                    1.0.3-2    high-quality block-sorting file co
ii  libc6                         2.3.5-13   GNU C Library: Shared libraries an
ii  libldap2                      2.1.30-12  OpenLDAP libraries
ii  libpcre3                      6.4-1.1    Perl 5 Compatible Regular Expressi
ii  libssl0.9.8                   0.9.8a-7   SSL shared libraries
ii  lsb-base                      3.0-15     Linux Standard Base 3.0 init scrip
ii  mime-support                  3.35-1     MIME files 'mime.types' & 'mailcap
ii  zlib1g                        1:1.2.3-9  compression library - runtime

Versions of packages lighttpd recommends:
pn  php4-cgi                      <none>     (no description available)
pn  php5-cgi                      <none>     (no description available)

-- no debconf information

More information about the pkg-lighttpd-maintainers mailing list