logrotate removed from /etc/cron.daily

I noticed that on some of our SLES 12 systems, logrotate is no more run daily, and the logfiles grow and grow :frowning:

Looking deeper into it, I found that, while previous versions (e.g. 3.8.7) of logrotate contained /etc/cron.daily/logrotate, more recent versions (e.g. 3.11.0) dropped this file, but bring /usr/lib/systemd/system/logrotate.service and /usr/lib/systemd/system/logrotate.timer with them.

This service is not enabled:

host:/etc/cron.daily # systemctl is-enabled logrotate static host:/etc/cron.daily # service logrotate status รขย—ย logrotate.service - Rotate log files Loaded: loaded (/usr/lib/systemd/system/logrotate.service; static; vendor preset: disabled) Active: inactive (dead) Docs: man:logrotate(8) man:logrotate.conf(5) host:/etc/cron.daily #

Should we enable the service manually? Is this a bug of the update scripts?

Kind regard, Tom

On 06/07/18 10:04, swadm wrote:
[color=blue]

I noticed that on some of our SLES 12 systems, logrotate is no more run
daily, and the logfiles grow and grow :frowning:

Looking deeper into it, I found that, while previous versions (e.g.
3.8.7) of logrotate contained /etc/cron.daily/logrotate, more recent
versions (e.g. 3.11.0) dropped this file, but bring
/usr/lib/systemd/system/logrotate.service and
/usr/lib/systemd/system/logrotate.timer with them.

This service is not enabled:

Code:

 host:/etc/cron.daily # systemctl is-enabled logrotate

static
host:/etc/cron.daily # service logrotate status
รขย—ย logrotate.service - Rotate log files
Loaded: loaded (/usr/lib/systemd/system/logrotate.service; static; vendor preset: disabled)
Active: inactive (dead)
Docs: man:logrotate(8)
man:logrotate.conf(5)
host:/etc/cron.daily #


Should we enable the service manually? Is this a bug of the update
scripts?[/color]

Was this server upgraded from a previous version of SLES12 to SLES12
SP3? Please see
https://www.suse.com/releasenotes/x86_64/SUSE-SLES/12-SP3/#fate-322037 .

HTH.

Simon
SUSE Knowledge Partner


If you find this post helpful and are logged into the web interface,
please show your appreciation and click on the star below. Thanks.

Simon,

thanks, that definitely helps. These systems have been taken up from SP1.
Would have been a sensible default to enable logrotate.timer automatically during such migrations.
Oddly there is a system, that also came from SP1 but has logrotate.timer enabled.

Kind Regards, Tom