Your message dated Mon, 10 Feb 2014 12:13:54 +0100
with message-id 
<caa7u3hoeh+euprdqk05nabguxpteve6tzjruq_jrgvzymyt...@mail.gmail.com>
and subject line Re: [pkg-lighttpd] Bug#738464: lighttpd: Init script returns 
exit 4 for status when not running
has caused the Debian Bug report #738464,
regarding lighttpd: Init script returns exit 4  for status when not running
to be marked as done.

This means that you claim that the problem has been dealt with.
If this is not the case it is now your responsibility to reopen the
Bug report if necessary, and/or fix the problem forthwith.

(NB: If you are a system administrator and have no idea what this
message is talking about, this may indicate a serious mail system
misconfiguration somewhere. Please contact [email protected]
immediately.)


-- 
738464: http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=738464
Debian Bug Tracking System
Contact [email protected] with problems
--- Begin Message ---
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

--- End Message ---
--- Begin Message ---
On Mon, Feb 10, 2014 at 12:56 AM, Daniel Baur <[email protected]> wrote:
> you can close this issue, the bug is on my side. The wheezy version of
> init-functions handles everything correct (it returns 3) AFAIS. So I
> will update its package and everything should be ok. Sorry for the
> trouble :-(.

No problem

--- End Message ---

Reply via email to