diff options
Diffstat (limited to 'tools')
| -rw-r--r-- | tools/boca-submit-log | 4 | ||||
| -rw-r--r-- | tools/cron-boca-log | 2 |
2 files changed, 3 insertions, 3 deletions
diff --git a/tools/boca-submit-log b/tools/boca-submit-log index a96810b..f06efb9 100644 --- a/tools/boca-submit-log +++ b/tools/boca-submit-log @@ -22,7 +22,7 @@ chmod 600 /var/log/logkeys 2>/dev/null chown root.root /var/log/bocacron.* 2>/dev/null chmod 600 /var/log/bocacron.* 2>/dev/null -for zcount in 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15; do +for zcount in 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20; do grep -e sudo -e "password:session" /var/log/auth.log | tail -n 500 > /root/.logsession.tmp [ -f /root/.logsession ] || touch /root/.logsession @@ -98,7 +98,7 @@ for zcount in 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15; do [ -f /root/.logkeys.tmp ] && mv /root/.logkeys.tmp /root/.logkeys [ -f /root/.logfs.tmp ] && mv /root/.logfs.tmp /root/.logfs [ -f /root/.logkfs.tmp ] && mv /root/.logkfs.tmp /root/.logkfs - [ "$zcount" == "15" ] || sleep 10 + [ "$zcount" == "20" ] || sleep 13 done exit 0 diff --git a/tools/cron-boca-log b/tools/cron-boca-log index c5aedcf..7262d88 100644 --- a/tools/cron-boca-log +++ b/tools/cron-boca-log @@ -1 +1 @@ -*/3 * * * * root /usr/sbin/boca-submit-log >>/var/log/boca-submit-log.out 2>>/var/log/boca-submit-log.err +*/5 * * * * root /usr/sbin/boca-submit-log >>/var/log/boca-submit-log.out 2>>/var/log/boca-submit-log.err |