Mailinglist Archive: opensuse (946 mails)

< Previous Next >
Re: [opensuse] logrotate
* Patrick Shanahan <paka@xxxxxxxxxxxx> [09-13-17 10:15]:
* Peter Suetterlin <P.Suetterlin@xxxxxxxxxxxx> [09-13-17 09:49]:

Hi list,

looking through my disk usage I realized /var/log uses 2GB :o
and what do I see?

woodstock:/var/log # ls -lh zypper.log
-rw-r----- 1 root root 1.6G Sep 13 14:23 zypper.log

why isn't it rotated/compressed? Ah: this is now handled by systemd instead
of cron, and disabled by default :(

woodstock:/var/log # systemctl status logrotate
● logrotate.service - Rotate log files
Loaded: loaded (/usr/lib/systemd/system/logrotate.service; static;
vendor preset: disabled)

Not sure if that is a sane choice for a TW system that typically has several
'zypper dup' per week. The 1.6GB is the logs from just one year...

your Tw seems different than mine. all 5 of mine show:
● logrotate.service - Rotate log files
Loaded: loaded (/usr/lib/systemd/system/logrotate.service; static;
vendor preset: disabled)
Active: inactive (dead) since Wed 2017-09-13 00:01:22 EDT; 10h ago
Docs: man:logrotate(8)
man:logrotate.conf(5)
Process: 18438 ExecStart=/usr/sbin/logrotate /etc/logrotate.conf
(code=exited, status=0/SUCCESS)
Main PID: 18438 (code=exited, status=0/SUCCESS)


logrotate is instigated by cron here.

or maybe systemd timers ...

--
(paka)Patrick Shanahan Plainfield, Indiana, USA @ptilopteri
http://en.opensuse.org openSUSE Community Member facebook/ptilopteri
Registered Linux User #207535 @ http://linuxcounter.net
Photos: http://wahoo.no-ip.org/piwigo paka @ IRCnet freenode

--
To unsubscribe, e-mail: opensuse+unsubscribe@xxxxxxxxxxxx
To contact the owner, e-mail: opensuse+owner@xxxxxxxxxxxx

< Previous Next >