source:
branches/samhain_3_1/scripts/logrotate.in@
526
Last change on this file since 526 was 478, checked in by , 9 years ago | |
---|---|
File size: 489 bytes |
Line | |
---|---|
1 | @mylogfile@ { |
2 | weekly |
3 | rotate 52 |
4 | nocreate |
5 | missingok |
6 | compress |
7 | |
8 | prerotate |
9 | if test -f @mylockfile@; then \ |
10 | PIN=`cat @mylockfile@`; \ |
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 @mylogfile@.lock; then \ |
17 | sleep 1; \ |
18 | else \ |
19 | break; \ |
20 | fi \ |
21 | done; \ |
22 | fi |
23 | endscript |
24 | } |
Note:
See TracBrowser
for help on using the repository browser.