aboutsummaryrefslogtreecommitdiff
path: root/tools/boca-submit-logroot
diff options
context:
space:
mode:
authorCassio de Campos <cassiopc@gmail.com>2017-08-18 15:54:59 +0000
committerCassio de Campos <cassiopc@gmail.com>2017-08-18 15:54:59 +0000
commitdc7f29fec79f559ea840022b682567b9fcb2be17 (patch)
tree6ddaacd6235d2a6e8caf7a31452ee66eda1f39b1 /tools/boca-submit-logroot
parentbfe00dcb8b978e78e57ce4b2eb285989f6025b94 (diff)
downloadboca-dc7f29fec79f559ea840022b682567b9fcb2be17.tar.gz
boca-dc7f29fec79f559ea840022b682567b9fcb2be17.zip
better window
Diffstat (limited to 'tools/boca-submit-logroot')
-rw-r--r--tools/boca-submit-logroot4
1 files changed, 2 insertions, 2 deletions
diff --git a/tools/boca-submit-logroot b/tools/boca-submit-logroot
index 4b5d54e..901da3c 100644
--- a/tools/boca-submit-logroot
+++ b/tools/boca-submit-logroot
@@ -15,7 +15,7 @@ if [ "$BOCASERVER" == "" ]; then
exit 1
fi
-for zcount in 1 2 3 4; do
+for zcount in 1 2 3 4 5 6; 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
@@ -60,7 +60,7 @@ if [ "$res" != "0" ]; then
fi
fi
mv /root/.logroot.tmp /root/.logroot
-[ "$zcount" == "4" ] || sleep 15
+[ "$zcount" == "6" ] || sleep 8
done
exit 0