[pkg-lighttpd] Bug#738464: lighttpd: Init script returns exit 4 for status when not running

Daniel 'DaB.' Baur debian at daniel.baur4.info
Sun Feb 9 20:42:57 UTC 2014


Package: lighttpd
Version: 1.4.28-2+squeeze1.5
Severity: normal
Tags: patch

Hello,

/etc/init.d/lighttpd status returns a 4 if lighttpd is not
running. This habbens because its pid-file can not be found. The 
return-code of 4 confuses the pacemaker/corosync here, so I had to patch    
the init-file localy to return a 3 if there is no pid-file. Maybe you could  
include it in a coming version.

Thanks for your great service :-).

Sincerley,
DaB.

--patch starts ---
--- /tmp/lighttpd       2013-02-16 16:18:05.000000000 +0000
+++ /etc/init.d/lighttpd        2014-02-09 20:20:25.000000000 +0000
@@ -93,6 +96,10 @@
         $0 start
         ;;
     status)
+       if [ ! -e ${PIDFILE} ]; then
+               echo "Not running."
+               exit 3
+       fi
         status_of_proc -p "$PIDFILE" "$DAEMON" lighttpd && exit 0 || exit $?
         ;;
     *)


--patch ends ---



-- System Information:
Debian Release: 6.0.8
  APT prefers oldstable
  APT policy: (500, 'oldstable'), (400, 'stable')
Architecture: i386 (i686)

Kernel: Linux 3.2.0-4-686-pae (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 lighttpd depends on:
ii  libattr1               1:2.4.44-2        Extended attribute shared library
ii  libbz2-1.0             1.0.5-6+squeeze1  high-quality block-sorting file co
ii  libc6                  2.13-38           Embedded GNU C Library: Shared lib
ii  libfam0                2.7.0-17          Client library to control the FAM 
ii  libldap-2.4-2          2.4.23-7.3        OpenLDAP libraries
ii  libpcre3               8.02-1.1          Perl 5 Compatible Regular Expressi
ii  libssl0.9.8            0.9.8o-4squeeze14 SSL shared libraries
ii  libterm-readline-perl- 1.0303-1          Perl implementation of Readline li
ii  lsb-base               3.2-23.2squeeze1  Linux Standard Base 3.2 init scrip
ii  mime-support           3.48-1            MIME files 'mime.types' & 'mailcap
ii  zlib1g                 1:1.2.3.4.dfsg-3  compression library - runtime

Versions of packages lighttpd recommends:
ii  spawn-fcgi                    1.6.3-1    A fastcgi process spawner

Versions of packages lighttpd suggests:
ii  apache2-utils         2.2.16-6+squeeze11 utility programs for webservers
ii  openssl               0.9.8o-4squeeze14  Secure Socket Layer (SSL) binary a
pn  rrdtool               <none>             (no description available)

-- Configuration Files:
/etc/init.d/lighttpd changed [not included]

-- no debconf information



More information about the pkg-lighttpd-maintainers mailing list