Skip to content

Duplicate logrotate entries #584

@Konnichy

Description

@Konnichy

Hello,

Using another project built on this one, I periodically received the following notification by email:

/etc/cron.daily/logrotate:
error: /etc/logrotate.conf:22 duplicate log entry for /var/log/wtmp
error: /etc/logrotate.conf:29 duplicate log entry for /var/log/btmp
run-parts: /etc/cron.daily/logrotate exited with return code 1

After investigating, I notice that duplicates are introduced by your logrotate.conf, installed at the end of syslog-ng.sh, which contains btmp and wtmp sections. This doubles with files /etc/logrotate.d/btmp and /etc/logrotate.d/wtmp, which are already installed by the official package, just one line above in your script.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions