From 6222225dbc37f5fa64f4a3c3dc86189d32ef679e Mon Sep 17 00:00:00 2001 From: Varun Patil Date: Fri, 10 May 2024 10:39:26 -0700 Subject: [PATCH] scripts: make executable --- README.md | 10 ++++++++++ scripts/cron-host.sh | 0 scripts/cron-master.sh | 2 +- scripts/cron-status.sh | 0 scripts/master.sh | 0 5 files changed, 11 insertions(+), 1 deletion(-) mode change 100644 => 100755 scripts/cron-host.sh mode change 100644 => 100755 scripts/cron-master.sh mode change 100644 => 100755 scripts/cron-status.sh mode change 100644 => 100755 scripts/master.sh diff --git a/README.md b/README.md index 8719e15..887c514 100644 --- a/README.md +++ b/README.md @@ -76,6 +76,16 @@ nfdc status report ndnpeek /ndn/edu/ucla/ping/test | ndn-dissect ``` +The master service runs internal cron jobs for polling. You can trigger these manually during debugging (only when not in DEBUG mode). + +```bash +# cron-master pulls the git repo and restarts containers if required +docker compose exec master bash /testbed/scripts/cron-master.sh + +# cron-status regenerates status json +docker compose exec master bash /testbed/scripts/cron-status.sh +``` + ## Unattended Upgrades Set up unattended upgrades on the host to automatically install security updates. diff --git a/scripts/cron-host.sh b/scripts/cron-host.sh old mode 100644 new mode 100755 diff --git a/scripts/cron-master.sh b/scripts/cron-master.sh old mode 100644 new mode 100755 index 2b5c800..1fdfb36 --- a/scripts/cron-master.sh +++ b/scripts/cron-master.sh @@ -15,6 +15,6 @@ fi git pull -PWD=$ROOT_DIR python3 framework/main.py +PWD="${ROOT_DIR}" python3 framework/main.py echo -e "Finished cron-master at $(date)" \ No newline at end of file diff --git a/scripts/cron-status.sh b/scripts/cron-status.sh old mode 100644 new mode 100755 diff --git a/scripts/master.sh b/scripts/master.sh old mode 100644 new mode 100755