From 6b2138ea80c07b29a1cd01174fa79d104cc8bbae Mon Sep 17 00:00:00 2001 From: MS Date: Fri, 28 May 2021 18:36:31 +0200 Subject: debug --- bin/taler-deployment-config-instances | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/bin/taler-deployment-config-instances b/bin/taler-deployment-config-instances index 219ee4d..02ee999 100755 --- a/bin/taler-deployment-config-instances +++ b/bin/taler-deployment-config-instances @@ -114,6 +114,7 @@ def is_merchant_running(): def ensure_default_instance(): # Assumed is managed by ARM if is_merchant_running(): + print("Found running merchant, assuming is managed by ARM. Terminating it") system("taler-deployment-arm -k taler-merchant") checks = 10 @@ -128,15 +129,18 @@ def ensure_default_instance(): print("Could not stop the running merchant.") exit(1) + print("Successfully terminating the merchant.") # ARM is _not_ running the merchant at this point. env_with_token = environ.copy() env_with_token["TALER_MERCHANT_TOKEN"] = TALER_ENV_FRONTENDS_APITOKEN + print("Starting the merchant outside ARM, passing the token into the environment.") # Start the merchant natively. merchant = Popen(["taler-merchant-httpd"], env=env_with_token) wait_merchant_up() - + + print("Merchant started successfully, creating the default instance now.") ensure_instance( "default", "default", @@ -146,8 +150,8 @@ def ensure_default_instance(): merchant.terminate() merchant.wait() + print("Merchant terminated, restarting it via ARM now.") - print("Starting the merchant again via ARM") system("taler-deployment-arm -i taler-merchant") ensure_default_instance() -- cgit v1.2.3