Gentoo Archives: gentoo-user

From: Mick <michaelkintzios@×××××.com>
To: gentoo-user@l.g.o
Subject: [gentoo-user] logrotate ... won't!
Date: Sun, 12 Feb 2017 16:57:22
Message-Id: 4205505.LEOtEU0xdT@dell_xps
1 I am perplexed why box of mine will not logrotate system logs, which have now
2 grown into gigs. kern.log, syslog, messages, etc. are eating up space
3 unconstrained, to the point where the partition run out of it.
4
5 Trying to run /etc/cron.daily/logrotate from a terminal does not show anything
6 in messages, or syslog.
7
8 Particulars below:
9
10 # ls -la /etc/cron.daily/logrotate
11 -rwxr-xr-x 1 root root 179 Feb 12 16:09 /etc/cron.daily/logrotate
12
13
14 # cat /etc/cron.daily/logrotate
15 #!/bin/sh
16
17 /usr/bin/logrotate /etc/logrotate.conf
18 EXITVALUE=$?
19 if [ $EXITVALUE != 0 ]; then
20 /usr/bin/logger -t logrotate "ALERT exited abnormally with [$EXITVALUE]"
21 fi
22 exit 0
23
24
25 This is an installation I have not really changed much from default settings.
26 Comparing with other systems which work as expected I can't see anything
27 amiss. How could I troubleshoot/fix this problem?
28
29 --
30 Regards,
31 Mick

Attachments

File name MIME type
signature.asc application/pgp-signature

Replies

Subject Author
Re: [gentoo-user] logrotate ... won't! Alexander Kapshuk <alexander.kapshuk@×××××.com>