/var/log/thttpd.log {
    rotate 14
    daily
    compress
    missingok
    delaycompress
    postrotate
    	if [ -f /var/run/thttpd.pid ]; then
		if [ -x /usr/sbin/invoke-rc.d ]; then
			invoke-rc.d thttpd restart > /dev/null 2>&1
		else
			/etc/init.d/thttpd restart > /dev/null 2>&1
		fi
	    rm -f /tmp/start_thttpd
	fi
    endscript
}
