I ran into this exact problem months back and
I think I filed a bug report but can't seem to find it.
The 'logrotate.d/atop' file was deleted in the atop.postinst:

#!/bin/bash

set -e

if dpkg-maintscript-helper supports rm_conffile; then
        dpkg-maintscript-helper rm_conffile \
                /etc/logrotate.d/atop 1.26-2~ -- "$@"
<* snip *>

        I guess the intent was to handle log file rotation
via a job run at midnight ('/etc/cron.d/atop'):

# start atop daily at midnight
0 0 * * * root /etc/atop/atop.daily

The 'atop.daily' script is not in the Debian package but itdate +%Y%m%d
was/is in the Fedora version of atop (v2+), and does the following:

1)  Sets the current day's atop file name to 'atop_$(date +%Y%m%d)'
2)  Stops atop
3)  Starts atop using the atop file name from step 1
4)  Deletes logfiles older than four weeks

I have attached atop.daily file for perusal.

        Once I put that mechanism in place things run fine:

lt /var/log/atop
total 115200
3756 -rw-r--r--  1 root root 3838089 Dec  5 00:00 atop_20141204
3524 -rw-r--r--  1 root root 3608110 Dec  6 00:00 atop_20141205
4200 -rw-r--r--  1 root root 4293850 Dec  7 00:00 atop_20141206
4832 -rw-r--r--  1 root root 4941112 Dec  8 00:00 atop_20141207
4744 -rw-r--r--  1 root root 4852213 Dec  9 00:00 atop_20141208
3476 -rw-r--r--  1 root root 3552609 Dec 10 00:00 atop_20141209
4196 -rw-r--r--  1 root root 4291464 Dec 11 00:00 atop_20141210
3528 -rw-r--r--  1 root root 3610852 Dec 12 00:00 atop_20141211
3996 -rw-r--r--  1 root root 4084699 Dec 13 00:00 atop_20141212
3936 -rw-r--r--  1 root root 4022653 Dec 14 00:00 atop_20141213
3556 -rw-r--r--  1 root root 3634644 Dec 15 00:00 atop_20141214
3208 -rw-r--r--  1 root root 3277817 Dec 16 00:00 atop_20141215
3032 -rw-r--r--  1 root root 3099054 Dec 17 00:00 atop_20141216
3856 -rw-r--r--  1 root root 3943060 Dec 18 00:00 atop_20141217
3332 -rw-r--r--  1 root root 3407345 Dec 19 00:00 atop_20141218
3888 -rw-r--r--  1 root root 3976167 Dec 20 00:00 atop_20141219
5040 -rw-r--r--  1 root root 5154520 Dec 21 00:00 atop_20141220
3708 -rw-r--r--  1 root root 3789303 Dec 22 00:00 atop_20141221
4304 -rw-r--r--  1 root root 4402503 Dec 23 00:00 atop_20141222
4068 -rw-r--r--  1 root root 4160795 Dec 24 00:00 atop_20141223
4276 -rw-r--r--  1 root root 4372921 Dec 25 00:00 atop_20141224
4092 -rw-r--r--  1 root root 4183791 Dec 26 00:00 atop_20141225
3920 -rw-r--r--  1 root root 4009570 Dec 27 00:00 atop_20141226
3184 -rw-r--r--  1 root root 3253251 Dec 28 00:00 atop_20141227
4148 -rw-r--r--  1 root root 4242474 Dec 29 00:00 atop_20141228
4000 -rw-r--r--  1 root root 4091041 Dec 30 00:00 atop_20141229
4064 -rw-r--r--  1 root root 4153619 Dec 31 00:00 atop_20141230
4280 -rw-r--r--  1 root root 4375108 Jan  1 00:00 atop_20141231
   0 -rw-------  1 root root       0 Jan  1 05:28 dummy_before.1
   0 -rw-------  1 root root       0 Jan  1 05:28 dummy_after.1
3316 -rw-r--r--  1 root root 3389015 Jan  2 00:00 atop_20150101
   0 -rw-r--r--  1 root root       0 Jan  2 05:25 daily.log
   0 -rw-------  1 root root       0 Jan  2 05:28 dummy_before
   0 -rw-------  1 root root       0 Jan  2 05:28 dummy_after
   4 drwxr-xr-x  2 root root    4096 Jan  2 05:28 .
  12 drwxr-xr-x 22 root root   12288 Jan  2 05:28 ..
1724 -rw-r--r--  1 root root 1761174 Jan  2 10:15 atop_20150102

Attachment: atop.daily
Description: Binary data

Reply via email to