summaryrefslogtreecommitdiff
blob: 766d4c05bef2c4d18be73c072339669892ef5f22 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
# Logrotate file for acct
 
/var/account/pacct {
	prerotate
		if [ -h /lib/rc/init.d/started/acct ]; then
			 /etc/init.d/acct stop > /dev/null 2>&1 || true
		fi
	endscript
	compress
	delaycompress
	notifempty
	daily
	rotate 31
	create 0600 root root
	missingok
	postrotate
		if [ -h /lib/rc/init.d/started/acct ]; then
			 /etc/init.d/acct start > /dev/null 2>&1 || true
		fi
	endscript
}