blob: 3f8dbecc55f1703c32c990c6588b96b041937794 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
|
# lighttpd logrotate script for Gentoo
/var/log/lighttpd/*.log {
daily
missingok
copytruncate
rotate 7
compress
notifempty
sharedscripts
postrotate
if [ -x /etc/init.d/lighttpd ]; then
if /etc/init.d/lighttpd --quiet status; then
/etc/init.d/lighttpd --quiet reload || true
fi
elif test -e /var/run/systemd/system; then
systemctl reload lighttpd.service || true
else
true
fi
endscript
}
|