logrotate/logrotate-3.9.1-statusfile.patch
Kamil Dudka b259a262be Resolves: #1304828 - do not log to syslog by default
This partially reverts commit 9cb55142.
2016-07-20 14:34:01 +02:00

13 lines
425 B
Diff

diff --git a/examples/logrotate.cron b/examples/logrotate.cron
index c6d50d4..967932e 100644
--- a/examples/logrotate.cron
+++ b/examples/logrotate.cron
@@ -1,6 +1,6 @@
#!/bin/sh
-/usr/sbin/logrotate /etc/logrotate.conf
+/usr/sbin/logrotate -s /var/lib/logrotate/logrotate.status /etc/logrotate.conf
EXITVALUE=$?
if [ $EXITVALUE != 0 ]; then
/usr/bin/logger -t logrotate "ALERT exited abnormally with [$EXITVALUE]"