Tags: patch Seems like the tmp file isn't needed at all? Possible patch attached.
-- Kees Cook @outflux.net
diff -u thttpd-2.23beta1/debian/thttpd.logrotate thttpd-2.23beta1/debian/thttpd.logrotate --- thttpd-2.23beta1/debian/thttpd.logrotate +++ thttpd-2.23beta1/debian/thttpd.logrotate @@ -4,15 +4,9 @@ compress missingok delaycompress - prerotate - if pidof thttpd 2>&1 > /dev/null; then - touch /tmp/start_thttpd - fi - endscript postrotate - if [ -f /tmp/start_thttpd ]; then + if pidof thttpd 2>&1 > /dev/null; then /etc/init.d/thttpd restart 2>&1 > /dev/null - rm -f /tmp/start_thttpd fi endscript }