[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[taler-deployment] branch master updated: debug
From: |
gnunet |
Subject: |
[taler-deployment] branch master updated: debug |
Date: |
Fri, 28 May 2021 18:36:35 +0200 |
This is an automated email from the git hooks/post-receive script.
ms pushed a commit to branch master
in repository deployment.
The following commit(s) were added to refs/heads/master by this push:
new 6b2138e debug
6b2138e is described below
commit 6b2138ea80c07b29a1cd01174fa79d104cc8bbae
Author: MS <ms@taler.net>
AuthorDate: Fri May 28 18:36:31 2021 +0200
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()
--
To stop receiving notification emails like this one, please contact
gnunet@gnunet.org.