diff options
author | Florian Dold <florian@dold.me> | 2023-07-10 12:36:57 +0200 |
---|---|---|
committer | Florian Dold <florian@dold.me> | 2023-07-10 12:36:57 +0200 |
commit | 561468e0d6e07f7dc40b3005538c395c7f270bcb (patch) | |
tree | 9ea4836cad16e51b57ead20455527fcd2fc96a3a | |
parent | 1b6f704ff8ba2d065dafd02f991340d846407428 (diff) | |
download | deployment-561468e0d6e07f7dc40b3005538c395c7f270bcb.tar.gz deployment-561468e0d6e07f7dc40b3005538c395c7f270bcb.tar.bz2 deployment-561468e0d6e07f7dc40b3005538c395c7f270bcb.zip |
sandcastle: restart exchange periodically
-rw-r--r-- | sandcastle/images/exchange/scripts/startup.sh | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/sandcastle/images/exchange/scripts/startup.sh b/sandcastle/images/exchange/scripts/startup.sh index 7454143..5d8c0f8 100644 --- a/sandcastle/images/exchange/scripts/startup.sh +++ b/sandcastle/images/exchange/scripts/startup.sh @@ -74,4 +74,10 @@ echo -n "Requesting exchange's /keys..." curl --max-time 4 -s "${EXCHANGE_URL}keys" echo DONE +# Spawn a process that will fail after an hour, +# to facilitate restarting every hour. +( sleep 3600 && exit 1) & + +# Exit once a single process fails. +# Then, docker-compose will restart the whole container. wait -n |