From 1083fade3f0148b25001f5a437895a2a5b184284 Mon Sep 17 00:00:00 2001 From: Tuan Pham Anh Date: Mon, 8 Jul 2024 06:25:39 +0700 Subject: [PATCH] relay: auto restart --- relay/cron/docker_service_create.sh | 2 +- relay/main/docker_service_create.sh | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/relay/cron/docker_service_create.sh b/relay/cron/docker_service_create.sh index 479b722a..780b9fec 100644 --- a/relay/cron/docker_service_create.sh +++ b/relay/cron/docker_service_create.sh @@ -28,7 +28,7 @@ docker service create \ --network net8 \ --constraint "node.labels.cosmosia.relay==true" \ --endpoint-mode dnsrr \ - --restart-condition none \ + --restart-condition any \ archlinux:latest \ /bin/bash -c \ "curl -s https://raw.githubusercontent.com/notional-labs/cosmosia/main/relay/cron/run.sh > ~/run.sh && /bin/bash ~/run.sh $hubname" diff --git a/relay/main/docker_service_create.sh b/relay/main/docker_service_create.sh index 8d14199b..c7e8d485 100644 --- a/relay/main/docker_service_create.sh +++ b/relay/main/docker_service_create.sh @@ -28,7 +28,7 @@ docker service create \ --network net8 \ --constraint "node.labels.cosmosia.relay==true" \ --endpoint-mode dnsrr \ - --restart-condition none \ + --restart-condition any \ archlinux:latest \ /bin/bash -c \ "curl -s https://raw.githubusercontent.com/notional-labs/cosmosia/main/relay/main/run.sh > ~/run.sh && /bin/bash ~/run.sh $hubname"