Explorar o código

heartbeat message updated to add where it comes from (update_loop) and with second datestamp

clementinecomputing %!s(int64=6) %!d(string=hai) anos
pai
achega
b501fb98ca
Modificáronse 1 ficheiros con 2 adicións e 1 borrados
  1. 2 1
      busunit/scripts/update_loop.sh

+ 2 - 1
busunit/scripts/update_loop.sh

@@ -102,7 +102,8 @@ function check_update
 
 while true; do
 
-  echo "## heartbeat"
+  dt=`date +'%s'`
+  echo "## [$dt] update_loop: heartbeat"
 
   #See if we need to spawn our client supervisor
   if [ ! -f $supervisor_pidfile ]; then