Skip to content

Install logrotate in base image, use installation /etc/logrotate.d/ncs

Marko Zagožen requested to merge logrotate-in-base-image into master

NSO system installation comes with a logrotate config. Let's use it!

This is the contents in the latest version:

# This file is intended for install as /etc/logrotate.d/ncs,
# with generic options like 'rotate', 'dateext', etc in /etc/logrotate.conf

/log/*.log /log/*.access /log/*.trace {
    missingok
    notifempty
    compress
    sharedscripts
    nocreate
    postrotate
        /opt/ncs/current/bin/ncs_cmd -c reopen_logs > /dev/null || true
    endscript
}
Edited by Marko Zagožen

Merge request reports