1/var/log/samhain_log { 2 weekly 3 rotate 52 4 nocreate 5 missingok 6 compress 7 8 prerotate 9 if test -f /run/samhain.pid; then \ 10 PIN=`cat /run/samhain.pid`; \ 11 /bin/kill -TTIN $PIN; \ 12 sleep 1; \ 13 AA=0; \ 14 while test "x$AA" != "x120"; do \ 15 AA=$(( AA + 1 )); \ 16 if test -f /var/log/samhain_log.lock; then \ 17 sleep 1; \ 18 else \ 19 break; \ 20 fi \ 21 done; \ 22 fi 23 endscript 24} 25