tizen 2.4 release
[external/nghttp2.git] / contrib / nghttpx-logrotate
1 /var/log/nghttpx/*.log {
2         weekly
3         missingok
4         rotate 52
5         compress
6         delaycompress
7         notifempty
8         create 0640 www-data adm
9         sharedscripts
10         prerotate
11                 if [ -d /etc/logrotate.d/httpd-prerotate ]; then \
12                         run-parts /etc/logrotate.d/httpd-prerotate; \
13                 fi \
14         endscript
15         postrotate
16                 [ -s /run/nghttpx.pid ] && kill -USR1 `cat /run/nghttpx.pid`
17         endscript
18 }