public inbox for development@lists.ipfire.org
 help / color / mirror / Atom feed
* Logwatch (randomly) skipping days => Feature!?
@ 2019-02-17  9:22 Matthias Fischer
  2019-02-17 10:38 ` Tapani Tarvainen
  2019-02-17 14:42 ` Tom Rymes
  0 siblings, 2 replies; 11+ messages in thread
From: Matthias Fischer @ 2019-02-17  9:22 UTC (permalink / raw)
  To: development

[-- Attachment #1: Type: text/plain, Size: 761 bytes --]

Hi,

I discovered something weird:

>From time to time 'logwatch' does not create a daily log.

E.g.:
The file '/var/log/logwatch/2019-14-26' exists, but size = 0 Bytes.

The same happened yesterday with '/var/log/logwatch/2019-02-16':
0 Bytes.

After running...

/usr/local/bin/logwatch > /var/log/logwatch/`date -I -d yesterday`; \
LOGWATCH_KEEP=$(sed -ne 's/^LOGWATCH_KEEP=\([0-9]\+\)$/\1/p'
/var/ipfire/logging/settings); \
find /var/log/logwatch/ -ctime +${LOGWATCH_KEEP=56} -exec rm -f '{}' ';'

...manually from console, file was created, everything looks ok.

1. Can anyone confirm?

2. With which parameter could I change the starting time "01 0 * * *" so
that this doesn't happen again? I'm searching, but can't find a grip on
this...

Best,
Matthias

^ permalink raw reply	[flat|nested] 11+ messages in thread

end of thread, other threads:[~2019-04-01 16:48 UTC | newest]

Thread overview: 11+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2019-02-17  9:22 Logwatch (randomly) skipping days => Feature!? Matthias Fischer
2019-02-17 10:38 ` Tapani Tarvainen
2019-02-17 12:02   ` Matthias Fischer
2019-02-17 14:42 ` Tom Rymes
2019-02-17 15:01   ` Matthias Fischer
2019-02-18 12:38     ` Michael Tremer
2019-02-18 13:14       ` Matthias Fischer
2019-02-18 14:48         ` Michael Tremer
2019-04-01 16:28         ` Matthias Fischer
2019-04-01 16:34           ` Michael Tremer
2019-04-01 16:48             ` Matthias Fischer

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox