Current Path : /proc/12558/cwd/proc/11395/cwd/etc/cron.daily/ |
Current File : //proc/12558/cwd/proc/11395/cwd/etc/cron.daily/logrotate |
#!/bin/sh # Clean non existent log file entries from status file cd /var/lib/logrotate test -e status || touch status head -1 status > status.clean sed 's/"//g' status | while read logfile date do [ -e "$logfile" ] && echo "\"$logfile\" $date" done >> status.clean mv status.clean status test -x /usr/sbin/logrotate || exit 0 /usr/sbin/logrotate /etc/logrotate.conf