Bug#380080: [pkg-lighttpd] Bug#380080: lighttpd: logrotate stops servers, and sometimes it does not starts again

Krzysztof Krzyzaniak eloy at kofeina.net
Mon Aug 7 20:19:19 UTC 2006


Pierre Habouzit wrote:
> Package: lighttpd
> Version: 1.4.11-7
> Severity: grave
> Justification: renders package unusable
> 
> 
>   I use lighttpd on many servers, and sometimes, because of logrotate,
> the server stops, but never starts again (presumably because the sleep 5
> is not enough, logs shows that it took 5 seconds to stop:
> 
>     2006-07-27 06:25:20: (server.c.1216) [note] graceful shutdown started
>     2006-07-27 06:25:24: (log.c.135) server stopped
> 
>   (1) I'm surprised that lighttpd is not able to understand a kill -HUP
>       to reload.

It's because lighty dropping privileges after binding to port 80, there
is discussion [1] and preliminary, experimental patch.


>   (2) even if it doesn't, it should be possible to wait until it's
>       really stopped before starting it again, instead of a crude sleep.
> 
>   given that the logrotate fires the stop around 06:25, it causes
> serious downtime, hence the severity.

[1]
http://article.gmane.org/gmane.comp.web.lighttpd/3752/match=graceful+restart

  eloy
-- 
-------e-l-o-y-----------e-l-o-y- at -t-r-a-n-s-i-l-v-a-n-i-a-.-e-u-.-o-r-g------

       jak to dobrze, że są oceany - bez nich byłoby jeszcze smutniej




More information about the pkg-lighttpd-maintainers mailing list