I installed and configured pure-ftpd to transfer some files. As I only
needs this a few times a year, I removed it again.
On purpose, I did not purge, as I want to use the configuration next
time on install again.
Now logrotate fails:
2024-08-25T00:00:06.857669+00:00 meinfjell logrotate[4160099]: logrotate_script: 2: /usr/sbin/pure-ftpd-control: not found
2024-08-25T00:00:06.858178+00:00 meinfjell logrotate[4160069]: error: error running non-shared postrotate script for /var/log/pure-ftpd/transfer.log of '/var/log/pure-ftpd/transfer.log '
2024-08-25T00:00:07.797527+00:00 meinfjell systemd[1]: rsyslog.service: Sent signal SIGHUP to main process 774 (rsyslogd) on client request.
2024-08-25T00:00:07.797982+00:00 meinfjell rsyslogd: [origin software="rsyslogd" swVersion="8.2302.0" x-pid="774" x-info="https://www.rsyslog.com"] rsyslogd was HUPed
2024-08-25T00:00:07.830857+00:00 meinfjell systemd[1]: logrotate.service: Main process exited, code=exited, status=1/FAILURE
2024-08-25T00:00:07.831136+00:00 meinfjell systemd[1]: logrotate.service: Failed with result 'exit-code'.
2024-08-25T00:00:07.831483+00:00 meinfjell systemd[1]: Failed to start logrotate.service - Rotate log files.
The fix is simple:
On removal, use one of the "taboo" extensions of logrotate and on
reinstall remove this extension again. See logrotate(1) for details.