close
Warning:
Can't synchronize with repository "(default)" (The repository directory has changed, you should resynchronize the repository with: trac-admin $ENV repository resync '(default)'). Look in the Trac log for more information.
| 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.
Download in other formats: