source: trunk/scripts/samhain.logrotator@ 298

Last change on this file since 298 was 1, checked in by katerina, 19 years ago

Initial import

File size: 445 bytes
Line 
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.