[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[taler-deployment] branch master updated: Wait merchant to terminate
From: |
gnunet |
Subject: |
[taler-deployment] branch master updated: Wait merchant to terminate |
Date: |
Tue, 25 May 2021 14:11:29 +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 5b035f7 Wait merchant to terminate
5b035f7 is described below
commit 5b035f7d89005c089f79418ef09f9dbc4ce9095e
Author: MS <ms@taler.net>
AuthorDate: Tue May 25 14:11:24 2021 +0200
Wait merchant to terminate
---
bin/taler-deployment-config-instances | 9 +++++++++
1 file changed, 9 insertions(+)
diff --git a/bin/taler-deployment-config-instances
b/bin/taler-deployment-config-instances
index 04c2179..2d8b5a2 100755
--- a/bin/taler-deployment-config-instances
+++ b/bin/taler-deployment-config-instances
@@ -13,6 +13,7 @@ from os import environ, system
from sys import exit
from urllib.parse import urljoin
from subprocess import Popen
+import psutil
def expect_env(name):
val = environ.get(name)
@@ -74,6 +75,14 @@ def ensure_instance(instance_id, name, payto_uris, auth):
def ensure_default_instance():
system("taler-deployment-arm -k taler-merchant")
+ # Wait that merchant actually terminated.
+ still_running = True
+ while still_running:
+ for proc in psutil.process_iter():
+ if proc.name() == "taler-merchant-httpd":
+ sleep(1)
+ break
+ still_running = False
env_with_token = environ.copy()
env_with_token["TALER_MERCHANT_TOKEN"] = TALER_ENV_FRONTENDS_APITOKEN
merchant = Popen(["taler-merchant-httpd"], env=env_with_token)
--
To stop receiving notification emails like this one, please contact
gnunet@gnunet.org.
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [taler-deployment] branch master updated: Wait merchant to terminate,
gnunet <=