/etc/logrotate.d/psaccu_atop is in atop 1.26-0ubuntu1.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 | # Logrotate file to take action after psacct is rotated
/var/log/atop/dummy_after {
missingok
daily
rotate 1
ifempty
create 0600 root root
postrotate
if [ -e /etc/logrotate.d/psacct ]
then
# if the atop daemon does not run, restart it after
# accounting file is rotated
PIDFILE=/var/run/atop.pid
if [ -e $PIDFILE ] && \
ps -p `cat $PIDFILE` | grep 'atop$' > /dev/null
then
:
else
/etc/atop/atop.daily
fi
fi
endscript
}
|