Initial
This commit is contained in:
19
install/deb/logrotate/apache2
Normal file
19
install/deb/logrotate/apache2
Normal file
@@ -0,0 +1,19 @@
|
||||
/var/log/apache2/*.log /var/log/apache2/domains/*log {
|
||||
rotate 4
|
||||
weekly
|
||||
missingok
|
||||
notifempty
|
||||
compress
|
||||
delaycompress
|
||||
create 640
|
||||
sharedscripts
|
||||
postrotate
|
||||
/etc/init.d/apache2 reload > /dev/null || true
|
||||
[ ! -f /run/nginx.pid ] || kill -USR1 `cat /run/nginx.pid`
|
||||
endscript
|
||||
prerotate
|
||||
if [ -d /etc/logrotate.d/httpd-prerotate ]; then \
|
||||
run-parts /etc/logrotate.d/httpd-prerotate; \
|
||||
fi; \
|
||||
endscript
|
||||
}
|
||||
12
install/deb/logrotate/dovecot
Normal file
12
install/deb/logrotate/dovecot
Normal file
@@ -0,0 +1,12 @@
|
||||
/var/log/dovecot*.log {
|
||||
rotate 4
|
||||
weekly
|
||||
missingok
|
||||
notifempty
|
||||
compress
|
||||
delaycompress
|
||||
sharedscripts
|
||||
postrotate
|
||||
doveadm log reopen
|
||||
endscript
|
||||
}
|
||||
7
install/deb/logrotate/hestia
Normal file
7
install/deb/logrotate/hestia
Normal file
@@ -0,0 +1,7 @@
|
||||
/var/log/hestia/*.log {
|
||||
rotate 12
|
||||
monthly
|
||||
missingok
|
||||
notifempty
|
||||
create 0600 root root
|
||||
}
|
||||
4
install/deb/logrotate/httpd-prerotate/awstats
Executable file
4
install/deb/logrotate/httpd-prerotate/awstats
Executable file
@@ -0,0 +1,4 @@
|
||||
#!/bin/sh
|
||||
|
||||
# Changes made by HestiaCP due to https://github.com/hestiacp/hestiacp/issues/3289
|
||||
/usr/local/hestia/bin/v-update-sys-queue webstats
|
||||
13
install/deb/logrotate/nginx
Normal file
13
install/deb/logrotate/nginx
Normal file
@@ -0,0 +1,13 @@
|
||||
/var/log/nginx/*log /var/log/nginx/domains/*log {
|
||||
rotate 4
|
||||
weekly
|
||||
missingok
|
||||
notifempty
|
||||
compress
|
||||
delaycompress
|
||||
create 640
|
||||
sharedscripts
|
||||
postrotate
|
||||
[ -f /run/nginx.pid ] && kill -USR1 `cat /run/nginx.pid`
|
||||
endscript
|
||||
}
|
||||
7
install/deb/logrotate/roundcube
Normal file
7
install/deb/logrotate/roundcube
Normal file
@@ -0,0 +1,7 @@
|
||||
/var/log/roundcube/*.log {
|
||||
rotate 12
|
||||
monthly
|
||||
missingok
|
||||
notifempty
|
||||
create 644 www-data www-data
|
||||
}
|
||||
Reference in New Issue
Block a user