source:
trunk/scripts/samhain.logrotator@
90
Last change on this file since 90 was 1, checked in by , 19 years ago | |
---|---|
File size: 445 bytes |
Rev | Line | |
---|---|---|
[1] | 1 | /var/log/samhain_log { |
2 | size=1M | |
3 | nocreate | |
4 | compress | |
5 | mail root@mail | |
6 | maillast | |
7 | rotate 5 | |
8 | ||
9 | prerotate | |
10 | if test -f /var/run/samhain.pid; then \ | |
11 | PIN=`cat /var/run/samhain.pid`; \ | |
12 | /bin/kill -ABRT $PIN; \ | |
13 | sleep 1; \ | |
14 | AA=0; \ | |
15 | while test "x$AA" != "x120"; do \ | |
16 | let "AA = $AA + 1"; \ | |
17 | if test -f /var/run/samhain.pid; then \ | |
18 | sleep 1; \ | |
19 | else \ | |
20 | break; \ | |
21 | fi \ | |
22 | done; \ | |
23 | fi | |
24 | endscript | |
25 | ||
26 |
Note:
See TracBrowser
for help on using the repository browser.