aboutsummaryrefslogtreecommitdiff
path: root/tools/boca-submit-logroot
diff options
context:
space:
mode:
authorCassio de Campos <cassiopc@gmail.com>2017-08-18 15:47:19 +0000
committerCassio de Campos <cassiopc@gmail.com>2017-08-18 15:47:19 +0000
commitbfe00dcb8b978e78e57ce4b2eb285989f6025b94 (patch)
tree288d80728d16b512fa93415dccace3564675f164 /tools/boca-submit-logroot
parent3af30fdde793ebe24595900740636e26dc6de7c3 (diff)
downloadboca-bfe00dcb8b978e78e57ce4b2eb285989f6025b94.tar.gz
boca-bfe00dcb8b978e78e57ce4b2eb285989f6025b94.zip
fix sleeping times
Diffstat (limited to 'tools/boca-submit-logroot')
-rw-r--r--tools/boca-submit-logroot5
1 files changed, 5 insertions, 0 deletions
diff --git a/tools/boca-submit-logroot b/tools/boca-submit-logroot
index 0cf2ce5..4b5d54e 100644
--- a/tools/boca-submit-logroot
+++ b/tools/boca-submit-logroot
@@ -15,6 +15,8 @@ if [ "$BOCASERVER" == "" ]; then
exit 1
fi
+for zcount in 1 2 3 4; do
+
grep "session opened for user root" /var/log/auth.log |grep -v cron:session | grep -v systemd:session | tail -n 100 > /root/.logroot.tmp
[ -f /root/.logroot ] || touch /root/.logroot
diff /root/.logroot /root/.logroot.tmp > /root/.logroot.diff 2>/dev/null
@@ -58,4 +60,7 @@ if [ "$res" != "0" ]; then
fi
fi
mv /root/.logroot.tmp /root/.logroot
+[ "$zcount" == "4" ] || sleep 15
+done
+
exit 0