Skip to content

Commit

Permalink
set TIER beacon in container for prod use
Browse files Browse the repository at this point in the history
  • Loading branch information
pcaskey committed Feb 17, 2017
1 parent c74e74d commit e323643
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion files/bin/sendtierbeacon.sh
Original file line number Diff line number Diff line change
@@ -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
Expand Down
4 changes: 2 additions & 2 deletions files/bin/startup.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit e323643

Please sign in to comment.