mirror of
https://github.com/DarrenOfficial/dpaste.git
synced 2024-12-04 00:54:02 +11:00
19 lines
359 B
Text
19 lines
359 B
Text
/srv/dpaste.de/var/*.log {
|
|
monthly
|
|
rotate 52
|
|
dateext
|
|
missingok
|
|
compress
|
|
delaycompress
|
|
notifempty
|
|
create 0640 www-data adm
|
|
sharedscripts
|
|
prerotate
|
|
if [ -d /etc/logrotate.d/httpd-prerotate ]; then \
|
|
run-parts /etc/logrotate.d/httpd-prerotate; \
|
|
fi \
|
|
endscript
|
|
postrotate
|
|
invoke-rc.d nginx rotate >/dev/null 2>&1
|
|
endscript
|
|
}
|