From e3236439ac8c2729c0b7d1a312a53abf6b6cac30 Mon Sep 17 00:00:00 2001 From: Paul Caskey Date: Fri, 17 Feb 2017 09:13:27 -0600 Subject: [PATCH] set TIER beacon in container for prod use --- files/bin/sendtierbeacon.sh | 2 +- files/bin/startup.sh | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/files/bin/sendtierbeacon.sh b/files/bin/sendtierbeacon.sh index 1d09a9a..b2ba8c9 100644 --- a/files/bin/sendtierbeacon.sh +++ b/files/bin/sendtierbeacon.sh @@ -1,5 +1,5 @@ #!/bin/sh -LOGHOST="cerif.org" +LOGHOST="collector.testbed.internet2.edu" LOGPORT="5000" if [ -s /opt/tier/env.bash ]; then . /opt/tier/env.bash diff --git a/files/bin/startup.sh b/files/bin/startup.sh index 860c840..bfd573d 100644 --- a/files/bin/startup.sh +++ b/files/bin/startup.sh @@ -6,8 +6,8 @@ CRONFILE=/opt/tier/tier-cron #build crontab file with random start time between midnight and 3:59am echo "#send daily beacon to TIER Central" > ${CRONFILE} -echo "* * * * * /usr/bin/sendtierbeacon.sh >> /var/log/cron.log 2>&1" >> ${CRONFILE} -echo "#"$(expr $RANDOM % 59) $(expr $RANDOM % 3) "* * * /usr/bin/sendtierbeacon.sh >> /var/log/cron.log 2>&1" >> ${CRONFILE} +echo "#* * * * * /usr/bin/sendtierbeacon.sh >> /var/log/cron.log 2>&1" >> ${CRONFILE} +echo $(expr $RANDOM % 59) $(expr $RANDOM % 3) "* * * /usr/bin/sendtierbeacon.sh >> /var/log/cron.log 2>&1" >> ${CRONFILE} chmod 644 ${CRONFILE} #install crontab