diff options
Diffstat (limited to 'meta-ampere/meta-common/recipes-extended/rsyslog/rsyslog/rotate-event-logs.sh')
-rw-r--r-- | meta-ampere/meta-common/recipes-extended/rsyslog/rsyslog/rotate-event-logs.sh | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/meta-ampere/meta-common/recipes-extended/rsyslog/rsyslog/rotate-event-logs.sh b/meta-ampere/meta-common/recipes-extended/rsyslog/rsyslog/rotate-event-logs.sh new file mode 100644 index 000000000..5a8c5cc10 --- /dev/null +++ b/meta-ampere/meta-common/recipes-extended/rsyslog/rsyslog/rotate-event-logs.sh @@ -0,0 +1,10 @@ +#!/bin/sh + +while true; do + sleep 60 + /usr/sbin/logrotate /etc/logrotate.d/logrotate.rsyslog + ec=$? + if [ $ec -ne 0 ] ; then + echo "logrotate failed ($ec)" + fi +done |