summaryrefslogtreecommitdiff
path: root/community/thttpd/logrotate.d
blob: efac627041ff268a14f7e677de710592964d0c53 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
/var/log/thttpd/*log {
	missingok
	postrotate
	test -d /sys/fs/cgroup/systemd && {
		systemctl status thttpd.service | grep -q running &&
		systemctl restart thttpd.service >/dev/null 
	} || {
		rc.d list thttpd | grep -q STARTED &&
		/etc/rc.d/thttpd restart >/dev/null
	}
	endscript
}