Mailinglist Archive: opensuse (769 mails)

< Previous Next >
Re: [opensuse] logrotate not rotating my logs (openSUSE 13.2)
* Greg Freemyer <greg.freemyer@xxxxxxxxx> [05-20-16 16:48]:
On Fri, May 20, 2016 at 4:28 PM, Patrick Shanahan <paka@xxxxxxxxxxxx> wrote:
* Greg Freemyer <greg.freemyer@xxxxxxxxx> [05-20-16 16:19]:
My last rotated logs on this server are from 20160305

rpm -qa | grep log

Not sure how to troubleshoot this, so I'll wait for questions.

Logrotate maintains scripts:
called via cron: /etc/logrotate.conf

systemctl status logrotate

note that an unreadable log-file can cause rotation to fail. Not likely
your problem unless you have a rotating rust problem :(


systemctl status logrotate
logrotate.service - Rotate log files
Loaded: loaded (/usr/lib/systemd/system/logrotate.service; static)
Active: inactive (dead)
Docs: man:logrotate(8)

So the systemd service isn't running. But when I try to enable it:

sudo systemctl enable logrotate
root's password:
The unit files have no [Install] section. They are not meant to be enabled
using systemctl.
Possible reasons for having this kind of units are:
1) A unit may be statically enabled by being symlinked from another unit's
.wants/ or .requires/ directory.
2) A unit's purpose may be to act as a helper for some other unit which has
a requirement dependency on it.
3) A unit may be started when needed via activation (socket, path, timer,
D-Bus, udev, scripted systemctl call, ...).

Is it not supposed to be enabled?

Also, I did a " sudo systemctl start logrotate" and my logs are being
compressed now, but that won't survive a reboot.

Guess logrotate rpm doesn't contain the "service" files ?? or they didn't
get installed properly: /usr/lib/systemd/system/logrotate.service

I don't have a 13.2 install and my 13.1 runs logrotate strictly from cron,

(paka)Patrick Shanahan Plainfield, Indiana, USA @ptilopteri openSUSE Community Member facebook/ptilopteri Photo Album:
Registered Linux User #207535 @
To unsubscribe, e-mail: opensuse+unsubscribe@xxxxxxxxxxxx
To contact the owner, e-mail: opensuse+owner@xxxxxxxxxxxx

< Previous Next >
Follow Ups