From ab35506a76de98440ed082f751ab2464ce4c168f Mon Sep 17 00:00:00 2001 From: pierreozoux <pierre@ozoux.net> Date: Fri, 7 Nov 2014 15:33:06 +0000 Subject: [PATCH] Fixes Failing discovery --- unit-files/static-discovery@.service | 2 +- unit-files/static-git-discovery@.service | 2 +- unit-files/wordpress-discovery@.service | 4 ++-- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/unit-files/static-discovery@.service b/unit-files/static-discovery@.service index 94de75a..83ddef7 100644 --- a/unit-files/static-discovery@.service +++ b/unit-files/static-discovery@.service @@ -14,7 +14,7 @@ BindsTo=static@%i.service [Service] # Start ## Test whether service is accessible and then register useful information -ExecStart=/bin/bash -euxc ' \ +ExecStart=/bin/bash -c ' \ sleep 3; \ while true; do \ app=`echo %p | cut -d"-" -f1`; \ diff --git a/unit-files/static-git-discovery@.service b/unit-files/static-git-discovery@.service index 466a0b9..2ff4c71 100644 --- a/unit-files/static-git-discovery@.service +++ b/unit-files/static-git-discovery@.service @@ -14,7 +14,7 @@ BindsTo=static-git@%i.service [Service] # Start ## Test whether service is accessible and then register useful information -ExecStart=/bin/bash -euxc ' \ +ExecStart=/bin/bash -c ' \ sleep 3; \ while true; do \ app=`echo %p | cut -d"-" -f1,2`; \ diff --git a/unit-files/wordpress-discovery@.service b/unit-files/wordpress-discovery@.service index 804d5e1..a5ef99d 100644 --- a/unit-files/wordpress-discovery@.service +++ b/unit-files/wordpress-discovery@.service @@ -14,8 +14,8 @@ BindsTo=wordpress@%i.service [Service] # Start ## Test whether service is accessible and then register useful information -ExecStart=/bin/bash -euxc ' \ - sleep 3; \ +ExecStart=/bin/bash -c ' \ + sleep 30; \ while true; do \ app=`echo %p | cut -d"-" -f1`; \ ip=`docker inspect --format \'{{.NetworkSettings.IPAddress}}\' $app-%i`; \ -- GitLab