11 lines
178 B
Bash
11 lines
178 B
Bash
#!/bin/sh
|
|
|
|
while true; do
|
|
sleep 60
|
|
/usr/sbin/logrotate /etc/logrotate.d/*.rsyslog
|
|
ec=$?
|
|
if [ $ec -ne 0 ] ; then
|
|
echo "logrotate failed ($ec)"
|
|
fi
|
|
done
|