Skip to content

Commit

Permalink
scripts: make executable
Browse files Browse the repository at this point in the history
  • Loading branch information
pulsejet committed May 10, 2024
1 parent 17852c2 commit 6222225
Show file tree
Hide file tree
Showing 5 changed files with 11 additions and 1 deletion.
10 changes: 10 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down
Empty file modified scripts/cron-host.sh
100644 → 100755
Empty file.
2 changes: 1 addition & 1 deletion scripts/cron-master.sh
100644 → 100755
Original file line number Diff line number Diff line change
Expand Up @@ -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)"
Empty file modified scripts/cron-status.sh
100644 → 100755
Empty file.
Empty file modified scripts/master.sh
100644 → 100755
Empty file.

0 comments on commit 6222225

Please sign in to comment.