summaryrefslogtreecommitdiff
path: root/network/lighttpd2/conf/lighttpd2.logrotate
blob: a85c1efc239f5de447a0c711aa6831f11174f785 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
/var/log/lighttpd2/access.log /var/log/lighttpd2/error.log {
	daily
	missingok
	copytruncate
	rotate 30
	create 0644 @LIGHTTPD_USER@ root
	compress
	notifempty
	su lighttpd root
        sharedscripts
	postrotate
	if [ -x /etc/rc.d/rc.lighttpd2 -a -f /var/run/lighttpd2/lighttpd2.pid ]; then
		/etc/rc.d/rc.lighttpd2 restart
	fi
	endscript
}

/var/log/lighttpd2/lighttpd2.log {
	daily
	missingok
	copytruncate
	rotate 30
	create 0644 root root
	compress
	notifempty
        sharedscripts
	postrotate
	if [ -x /etc/rc.d/rc.lighttpd2 -a -f /var/run/lighttpd2/lighttpd2.pid ]; then
		/etc/rc.d/rc.lighttpd2 restart
	fi
	endscript
}