Skip to content

Commit de5cd53

Browse files
committed
Update logrotate configurations.
1 parent 230a060 commit de5cd53

File tree

20 files changed

+200
-200
lines changed

20 files changed

+200
-200
lines changed

install/debian/8/logrotate/apache2

Lines changed: 16 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -1,19 +1,19 @@
11
/var/log/apache2/*.log /var/log/apache2/domains/*log {
2-
weekly
3-
missingok
4-
rotate 52
5-
compress
6-
delaycompress
7-
notifempty
8-
create 640 root adm
9-
sharedscripts
10-
postrotate
11-
/etc/init.d/apache2 reload > /dev/null || true
12-
[ ! -f /var/run/nginx.pid ] || kill -USR1 `cat /var/run/nginx.pid`
2+
rotate 4
3+
weekly
4+
missingok
5+
notifempty
6+
compress
7+
delaycompress
8+
create 640 root adm
9+
sharedscripts
10+
postrotate
11+
/etc/init.d/apache2 reload > /dev/null || true
12+
[ ! -f /var/run/nginx.pid ] || kill -USR1 `cat /var/run/nginx.pid`
1313
endscript
14-
prerotate
15-
if [ -d /etc/logrotate.d/httpd-prerotate ]; then \
16-
run-parts /etc/logrotate.d/httpd-prerotate; \
17-
fi; \
14+
prerotate
15+
if [ -d /etc/logrotate.d/httpd-prerotate ]; then \
16+
run-parts /etc/logrotate.d/httpd-prerotate; \
17+
fi; \
1818
endscript
19-
}
19+
}

install/debian/8/logrotate/dovecot

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
11
/var/log/dovecot*.log {
2-
weekly
3-
rotate 4
4-
missingok
5-
notifempty
6-
compress
7-
delaycompress
8-
sharedscripts
9-
postrotate
2+
rotate 4
3+
weekly
4+
missingok
5+
notifempty
6+
compress
7+
delaycompress
8+
sharedscripts
9+
postrotate
1010
doveadm log reopen
11-
endscript
12-
}
11+
endscript
12+
}

install/debian/8/logrotate/hestia

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
/usr/local/hestia/log/*.log {
2+
rotate 12
3+
monthly
24
missingok
35
notifempty
4-
size 30k
5-
yearly
66
create 0600 root root
7-
}
7+
}

install/debian/8/logrotate/nginx

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,13 @@
11
/var/log/nginx/*log /var/log/nginx/domains/*log {
2-
daily
3-
missingok
4-
rotate 52
5-
compress
6-
delaycompress
7-
notifempty
8-
create 640 nginx adm
9-
sharedscripts
10-
postrotate
11-
[ -f /var/run/nginx.pid ] && kill -USR1 `cat /var/run/nginx.pid`
2+
rotate 4
3+
weekly
4+
missingok
5+
notifempty
6+
compress
7+
delaycompress
8+
create 640 nginx adm
9+
sharedscripts
10+
postrotate
11+
[ -f /var/run/nginx.pid ] && kill -USR1 `cat /var/run/nginx.pid`
1212
endscript
13-
}
13+
}

install/debian/9/logrotate/apache2

Lines changed: 16 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -1,19 +1,19 @@
11
/var/log/apache2/*.log /var/log/apache2/domains/*log {
2-
weekly
3-
missingok
4-
rotate 52
5-
compress
6-
delaycompress
7-
notifempty
8-
create 640 root adm
9-
sharedscripts
10-
postrotate
11-
/etc/init.d/apache2 reload > /dev/null || true
12-
[ ! -f /var/run/nginx.pid ] || kill -USR1 `cat /var/run/nginx.pid`
2+
rotate 4
3+
weekly
4+
missingok
5+
notifempty
6+
compress
7+
delaycompress
8+
create 640 root adm
9+
sharedscripts
10+
postrotate
11+
/etc/init.d/apache2 reload > /dev/null || true
12+
[ ! -f /var/run/nginx.pid ] || kill -USR1 `cat /var/run/nginx.pid`
1313
endscript
14-
prerotate
15-
if [ -d /etc/logrotate.d/httpd-prerotate ]; then \
16-
run-parts /etc/logrotate.d/httpd-prerotate; \
17-
fi; \
14+
prerotate
15+
if [ -d /etc/logrotate.d/httpd-prerotate ]; then \
16+
run-parts /etc/logrotate.d/httpd-prerotate; \
17+
fi; \
1818
endscript
19-
}
19+
}

install/debian/9/logrotate/dovecot

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
11
/var/log/dovecot*.log {
2-
weekly
3-
rotate 4
4-
missingok
5-
notifempty
6-
compress
7-
delaycompress
8-
sharedscripts
9-
postrotate
2+
rotate 4
3+
weekly
4+
missingok
5+
notifempty
6+
compress
7+
delaycompress
8+
sharedscripts
9+
postrotate
1010
doveadm log reopen
11-
endscript
12-
}
11+
endscript
12+
}

install/debian/9/logrotate/hestia

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
/usr/local/hestia/log/*.log {
2+
rotate 12
3+
monthly
24
missingok
35
notifempty
4-
size 30k
5-
yearly
66
create 0600 root root
7-
}
7+
}

install/debian/9/logrotate/nginx

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,13 @@
11
/var/log/nginx/*log /var/log/nginx/domains/*log {
2-
daily
3-
missingok
4-
rotate 52
5-
compress
6-
delaycompress
7-
notifempty
8-
create 640 nginx adm
9-
sharedscripts
10-
postrotate
11-
[ -f /var/run/nginx.pid ] && kill -USR1 `cat /var/run/nginx.pid`
2+
rotate 4
3+
weekly
4+
missingok
5+
notifempty
6+
compress
7+
delaycompress
8+
create 640 nginx adm
9+
sharedscripts
10+
postrotate
11+
[ -f /var/run/nginx.pid ] && kill -USR1 `cat /var/run/nginx.pid`
1212
endscript
13-
}
13+
}
Lines changed: 16 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -1,19 +1,19 @@
11
/var/log/apache2/*.log /var/log/apache2/domains/*log {
2-
weekly
3-
missingok
4-
rotate 52
5-
compress
6-
delaycompress
7-
notifempty
8-
create 640 root adm
9-
sharedscripts
10-
postrotate
11-
/etc/init.d/apache2 reload > /dev/null || true
12-
[ ! -f /var/run/nginx.pid ] || kill -USR1 `cat /var/run/nginx.pid`
2+
rotate 4
3+
weekly
4+
missingok
5+
notifempty
6+
compress
7+
delaycompress
8+
create 640 root adm
9+
sharedscripts
10+
postrotate
11+
/etc/init.d/apache2 reload > /dev/null || true
12+
[ ! -f /var/run/nginx.pid ] || kill -USR1 `cat /var/run/nginx.pid`
1313
endscript
14-
prerotate
15-
if [ -d /etc/logrotate.d/httpd-prerotate ]; then \
16-
run-parts /etc/logrotate.d/httpd-prerotate; \
17-
fi; \
14+
prerotate
15+
if [ -d /etc/logrotate.d/httpd-prerotate ]; then \
16+
run-parts /etc/logrotate.d/httpd-prerotate; \
17+
fi; \
1818
endscript
19-
}
19+
}
Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
11
/var/log/dovecot*.log {
2-
weekly
3-
rotate 4
4-
missingok
5-
notifempty
6-
compress
7-
delaycompress
8-
sharedscripts
9-
postrotate
2+
rotate 4
3+
weekly
4+
missingok
5+
notifempty
6+
compress
7+
delaycompress
8+
sharedscripts
9+
postrotate
1010
doveadm log reopen
11-
endscript
12-
}
11+
endscript
12+
}

0 commit comments

Comments
 (0)