[pkg-lighttpd] Bug#419992: logrotate gives <defunct> process
Henk van de Kamer
debian-bugs at vandekamer.com
Thu Apr 19 09:35:14 UTC 2007
Package: lighttpd
Version: 1.4.13-4
When Lighttpd is used in combination with PHP trough fast-CGI (probably
also others?) the logrotate raises the following defunct proces:
12087 ? S 0:00 /USR/SBIN/CRON
12088 ? Ss 0:00 /bin/sh -c test -x /usr/sbin/anacron ||
run-parts --r
12089 ? S 0:00 run-parts --report /etc/cron.daily
12108 ? Zs 0:00 [logrotate] <defunct>
After a lot of trial and error it seems that the addition of 2>&1 to
both lines in the /etc/logrotate.d/lighttpd solves this problem:
postrotate
if [ -f /var/run/lighttpd.pid ]; then \
if [ -x /usr/sbin/invoke-rc.d ]; then \
invoke-rc.d lighttpd force-reload > /dev/null 2>&1; \
else \
/etc/init.d/lighttpd force-reload > /dev/null 2>&1; \
fi; \
fi;
Henk van de kamer
More information about the pkg-lighttpd-maintainers
mailing list