PageRenderTime 69ms CodeModel.GetById 66ms app.highlight 1ms RepoModel.GetById 1ms app.codeStats 0ms

/logrotate.d/atop

http://github.com/brinkman83/bashrc
#! | 18 lines | 16 code | 2 blank | 0 comment | 0 complexity | 64d1d37c07e9d2a53fec6bad0bd43a9a MD5 | raw file
 1# atop logrotate configuration file
 2
 3/var/log/atop.log {
 4    rotate 14
 5    daily
 6    nocompress
 7    nocreate
 8    missingok
 9    prerotate
10	if pidof atop 2>&1 > /dev/null; then
11	    invoke-rc.d --quiet atop stop 2>&1 > /dev/null
12	fi
13    endscript
14    postrotate
15    	invoke-rc.d --quiet atop start 2>&1 > /dev/null
16    endscript
17}
18