Control: tags -1 moreinfo

> there wasn't even a warning about that

Where did you place the configuration for /var/log/wtmp ?

I. dpkg should ask if you had created a file /etc/logrotate.d/wtmp

    Configuration file '/etc/logrotate.d/wtmp'
     ==> File on system created by you or by a script.
     ==> File also in package provided by package maintainer.
       What would you like to do about it ?  Your options are:
        Y or I  : install the package maintainer's version
        N or O  : keep your currently-installed version
          D     : show the differences between the versions
          Z     : start a shell to examine the situation
     The default action is to keep your current version.
    *** wtmp (Y/I/N/O/D/Z) [default=N] ?

II. dpkg should also ask If you had modified /etc/logrotate.conf

    Configuration file '/etc/logrotate.conf'
     ==> Modified (by you or by a script) since installation.
     ==> Package distributor has shipped an updated version.
       What would you like to do about it ?  Your options are:
        Y or I  : install the package maintainer's version
        N or O  : keep your currently-installed version
          D     : show the differences between the versions
          Z     : start a shell to examine the situation
     The default action is to keep your current version.
    *** logrotate.conf (Y/I/N/O/D/Z) [default=N] ?

III. logrotate should refuse to rotate /var/log/wtmp and exit non-zero
if you had created a different file, resulting in a duplicate
configuration

    error: wtmp_local:1 duplicate log entry for /var/log/wtmp
    error: found error in file wtmp_local, skipping

Reply via email to