/var/log/mini_httpd/*.log {
        weekly
        missingok
		copytruncate
        rotate 7
        compress
        notifempty
        sharedscripts
        postrotate
           for i in /var/run/mini_httpd*.pid /var/run/mini_httpd/*.pid; do \
	   	if [ -f "$i" ]; then \
                	/etc/init.d/$(basename $i .pid) restart > /dev/null 2>&1 || true ; \
           	fi; \
	   done;
        endscript
}