summaryrefslogtreecommitdiffstats
path: root/main/mini_httpd/mini_httpd.logrotate
blob: bbd448b80ac8fae4cf306522a471b7960a3226ca (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
/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
}