summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMS <ms@taler.net>2021-05-28 18:36:31 +0200
committerMS <ms@taler.net>2021-05-28 18:36:31 +0200
commit6b2138ea80c07b29a1cd01174fa79d104cc8bbae (patch)
tree803f51be59df0e5bc940aac8238b5c96558d1334
parent863bafebbb8b751e01e8ac7e0df79aba4b2b2ca8 (diff)
downloaddeployment-6b2138ea80c07b29a1cd01174fa79d104cc8bbae.tar.gz
deployment-6b2138ea80c07b29a1cd01174fa79d104cc8bbae.tar.bz2
deployment-6b2138ea80c07b29a1cd01174fa79d104cc8bbae.zip
debug
-rwxr-xr-xbin/taler-deployment-config-instances8
1 files 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()