From fd5a0df95951a9b29afcb315fd4e73d60bd0ffe3 Mon Sep 17 00:00:00 2001 From: root Date: Fri, 11 Nov 2016 12:07:22 +0100 Subject: [PATCH] saving uncommitted changes in /etc prior to emerge run --- .etckeeper | 1 + cron.daily/._cfg0000_logrotate | 8 ++++++++ 2 files changed, 9 insertions(+) create mode 100755 cron.daily/._cfg0000_logrotate diff --git a/.etckeeper b/.etckeeper index cc86746..079bb90 100755 --- a/.etckeeper +++ b/.etckeeper @@ -804,6 +804,7 @@ maybe chmod 0755 'cron.d' maybe chmod 0644 'cron.d/.keep_sys-process_cronie-0' maybe chmod 0644 'cron.d/sysstat' maybe chmod 0750 'cron.daily' +maybe chmod 0755 'cron.daily/._cfg0000_logrotate' maybe chmod 0644 'cron.daily/.keep_sys-process_cronbase-0' maybe chmod 0755 'cron.daily/00-logwatch' maybe chmod 0755 'cron.daily/etckeeper' diff --git a/cron.daily/._cfg0000_logrotate b/cron.daily/._cfg0000_logrotate new file mode 100755 index 0000000..67ff626 --- /dev/null +++ b/cron.daily/._cfg0000_logrotate @@ -0,0 +1,8 @@ +#!/bin/sh + +/usr/bin/logrotate /etc/logrotate.conf +EXITVALUE=$? +if [ $EXITVALUE != 0 ]; then + /usr/bin/logger -t logrotate "ALERT exited abnormally with [$EXITVALUE]" +fi +exit 0 -- 2.39.5