File: apache2.logrotate

package info (click to toggle)
apache2 2.4.38-3%2Bdeb10u8
  • links: PTS, VCS
  • area: main
  • in suites: buster
  • size: 63,888 kB
  • sloc: ansic: 194,485; perl: 11,282; sh: 5,956; php: 1,316; javascript: 1,315; awk: 748; makefile: 656; lex: 374; yacc: 161; python: 72; xml: 1
file content (20 lines) | stat: -rw-r--r-- 442 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
/var/log/apache2/*.log {
	daily
	missingok
	rotate 14
	compress
	delaycompress
	notifempty
	create 640 root adm
	sharedscripts
	postrotate
                if invoke-rc.d apache2 status > /dev/null 2>&1; then \
                    invoke-rc.d apache2 reload > /dev/null 2>&1; \
                fi;
	endscript
	prerotate
		if [ -d /etc/logrotate.d/httpd-prerotate ]; then \
			run-parts /etc/logrotate.d/httpd-prerotate; \
		fi; \
	endscript
}