Debian, lighttpd, and logrotate
Posted on Thu 27 March 2008 in Technology
I noticed that everyday I had a defunct logrotate process on one of my servers running Debian and lighttpd. After some searching I found this bug report that said to make the following changes to my /etc/logrotate.d/lighttpd
file:
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;
Changes are in red. Just add “2>&1″ to the end of each command.