summaryrefslogtreecommitdiff
path: root/debian/lighttpd.logrotate
blob: 7f40a2bbbf341079dd059a5c05f72a2317bf788d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
/var/log/lighttpd/*.log {
        weekly
        missingok
        rotate 12
        compress
	delaycompress
        notifempty
        sharedscripts
        postrotate
             if [ -x /usr/bin/smf_present ]; then \
                [ `svcstatus lighttpd` = online ] && svcadm refresh lighttpd; \
             elif [ -x /usr/sbin/invoke-rc.d ]; then \
                invoke-rc.d lighttpd reopen-logs > /dev/null 2>&1; \
             else \
                /etc/init.d/lighttpd reopen-logs > /dev/null 2>&1; \
             fi; \
        endscript
}