#!/bin/sh # Mageia logrotate cron task log=/tmp/$$$$ /usr/sbin/logrotate /etc/logrotate.conf >$log 2>&1 rc=$? if [ $rc != 0 ]; then /usr/bin/logger -t logrotate "ALERT exited abnormally with [$rc]" /usr/bin/logger -t logrotate -f $log fi rm -f $log
#!/bin/sh # Mageia logrotate cron task log=/tmp/$$$$ /usr/sbin/logrotate /etc/logrotate.conf >$log 2>&1 rc=$? if [ $rc != 0 ]; then /usr/bin/logger -t logrotate "ALERT exited abnormally with [$rc]" /usr/bin/logger -t logrotate -f $log fi rm -f $log