logrotate with lighttpd graceful shutdown and restart failed.

Bug #74458 reported by BlueT - Matthew Lien - 練喆明 on 2006-12-05
10
Affects Status Importance Assigned to Milestone
lighttpd (Debian)
Fix Released
Unknown
lighttpd (Ubuntu)
Undecided
Unassigned
Dapper
Undecided
Unassigned

Bug Description

Binary package hint: lighttpd

Sometimes don't but sometimes lighttpd graceful shutdown at 6:25am and never wake up until you do /etc/init.d/lighttpd start.

This bug will make web server admin crazy bcoz you will never know if lighttpd will be still running tomorrow!

LOG: /var/log/lighttpd/error.log
2006-12-05 06:25:33: (server.c.1216) [note] graceful shutdown started
2006-12-05 06:31:25: (server.c.1126) NOTE: a request for /AdView/avi/MuchCard.avi timed out after writing 57920 bytes. We waited 360 second
s. If this a problem increase server.max-write-idle
2006-12-05 06:31:25: (log.c.135) server stopped
2006-12-05 09:47:07: (log.c.75) server started

To fix the bug, edit /etc/logrotate.d/lighttpd:
replace the following lines:
           if [ -f /var/run/lighttpd.pid ]; then \
             if [ -x /usr/sbin/invoke-rc.d ]; then \
                invoke-rc.d lighttpd reload > /dev/null; \
             else \
                /etc/init.d/lighttpd reload > /dev/null; \
             fi; \
           fi;
by:
        if [ -f /var/run/lighttpd.pid ]; then \
                kill -HUP $(</var/run/lighttpd.pid) ; \
        fi;

The solution's by darix in #lighttpd on Freenode.

BTW, this bug's on both Debian and Ubuntu.

Changed in lighttpd:
status: Unknown → Fix Released
Soren Hansen (soren) wrote :

We've merged with Debian, so this should be fixed now.

Changed in lighttpd:
status: Unconfirmed → Fix Released

Nope, Soren.
There's No updates for lighttpd in Dapper 6.06.1 LTS. :-S

the package "lighttpd" is still a broken package, crash-able.
I don't know if there's any updates in Edgy. @_@

Changed in lighttpd:
status: Fix Released → Fix Committed
Lukas Fittl (lfittl) wrote :

please test with the lighttpd update available from dapper-proposed.

Changed in lighttpd:
status: Fix Committed → Fix Released
status: Unconfirmed → Fix Committed

I've uploaded the security fix for 1.4.11-3ubuntu3.1 to dapper-proposed.

Daniel Hahler (blueyed) wrote :

I've just added the verification-needed tag as per https://wiki.ubuntu.com/StableReleaseUpdates.

The following bug may or may not be related to this bug.

https://bugs.launchpad.net/ubuntu/+source/dpkg/+bug/184777

The bug is still present in lighttpd 1.4.11-3ubuntu3.5

JC Hulce (soaringsky) on 2012-03-12
Changed in lighttpd (Ubuntu Dapper):
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  Edit
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.