Skip to content
Snippets Groups Projects
Commit d1785ff3 authored by Jakob Moser's avatar Jakob Moser
Browse files

Document watchbot

parent 238d04f9
Branches master
No related tags found
No related merge requests found
......@@ -2,7 +2,7 @@
Maintainer: Jakob Moser <moser@cl.uni-heidelberg.de>
Restarts all services that are currently running + Traefik. In the future, this might even happen automatically.
Watchbot consists of two components: A script that restarts all services that are currently running and Traefik, and a script that detects when Traefik is down.
## 📜 About the procedure
......@@ -12,6 +12,16 @@ The solution appears simple: Just restart Traefik!
However, this will sadly fail, because some other container always snatches the IP address Traefik wants to receive. Therefore, all services need to be stopped, then Traefik needs to be started, then the other services need to be started. This script does all of this.
## 🤖 Run watchbot
Edit your crontab (`sudo crontab -e`) to include the following line:
```
*/3 * * * * /coli/watchbot/watchbot.sh
```
This will run the script every 3 minutes to check if something is down and trigger a restart if needed.
## 🔃 Restart
If a restart ever becomes necessary, SSH into `lennon` and execute:
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment