The log rotation of the Icecast log files (/var/log/icecast/*.log) doesn't work if the Icecast server has been started via its systemd service unit (icecast.service), because the required Icecast PID file (/var/run/icecast/icecast.pid) is missing for SIGHUP to work. Version-Release number of selected component (if applicable): Name : icecast Arch : x86_64 Version : 2.4.2 Release : 1.el7 How reproducible: Install and start the Icecast server via systemctl and wait for the periodic logrotate to occur ("weekly" by default on CentOS 7, which can be changed to "daily" or "hourly" to speed things up). Steps to Reproduce: 1. yum install icecast 2. systemctl start icecast 3. Wait for the logrotate to occur (or trigger it manually) 4. ls -la /var/log/icecast/ Actual results: The Icecast server still logs to the old (rotated and date suffixed) log file instead of the newly created one. Expected results: Logrotate works as expected and the Icecast server logs to the newly created log file instead of the old (rotated) one. Additional info: The icecast logrotate snippet (/etc/logrotate.d/icecast) should either call "systemctl reload icecast.service" on systemd enabled systems or replace "cat [...]/icecast.pid" with "pidof icecast", to send a SIGHUP to the Icecast daemon which will trigger the server to re-open the log files. # Variant with systemctl reload (for systemd enabled systems) /var/log/icecast/*log { [...] postrotate /usr/bin/systemctl reload icecast.service 2> /dev/null || true endscript } # Variant with pidof (which should work on non-systemd and systemd enabled systems) /var/log/icecast/*log { [...] postrotate /bin/kill -HUP `pidof icecast 2>/dev/null` 2> /dev/null || true endscript }
EPEL 7 entered end-of-life (EOL) status on 2024-06-30.\n\nEPEL 7 is no longer maintained, which means that it\nwill not receive any further security or bug fix updates.\n As a result we are closing this bug.