Procedure 3.6. Managing log files with logrotate
/etc/logrotate.d/
.
%{?scl_prefix}logrotate
logrotate
file follow the standard logrotate
file format as follows:
/opt/provider/software_collection/var/log/your_application_name.log { missingok notifempty size 30k yearly create 0600 root root }
SOURCE2: %{?scl_prefix}logrotate
/etc/logrotate.d/
by adjusting the %install
section of the Software Collection package's spec file:
%install install -p -c -m 644 %{SOURCE2} $RPM_BUILD_ROOT%{?scl:%_root_sysconfdir}%{!?scl:%_sysconfdir}/logrotate.d/