gnunet-svn
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[taler-deployment] branch master updated: wait for services to start


From: gnunet
Subject: [taler-deployment] branch master updated: wait for services to start
Date: Wed, 14 Sep 2022 13:59:40 +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 e24cc45  wait for services to start
e24cc45 is described below

commit e24cc456d2df264dd1bc0c020488cb1559c0ce8f
Author: MS <ms@taler.net>
AuthorDate: Wed Sep 14 13:57:29 2022 +0200

    wait for services to start
---
 bin/taler-gv | 11 +++++++++--
 1 file changed, 9 insertions(+), 2 deletions(-)

diff --git a/bin/taler-gv b/bin/taler-gv
index 993ef81..cfe63c4 100755
--- a/bin/taler-gv
+++ b/bin/taler-gv
@@ -1538,7 +1538,8 @@ def prepare(postgres_db_name):
     subprocess.run(["systemctl", "--user", "start", 
"taler-local-nexus.service"])
     time.sleep(3)
     print(" OK")
-
+    if not is_serving("https://nexus.demo.taler.net/";):
+        fail(f"Nexus did not start correctly.")
     print_nn("Create Exchange account at Nexus...")
     prepare_nexus_account(
         ebics_url=EBICS_URL,
@@ -1705,6 +1706,8 @@ def prepare(postgres_db_name):
     print_nn(f"Start merchant (with TALER_MERCHANT_TOKEN into the env)...")
     subprocess.run(["systemctl", "--user", "start", 
"taler-local-merchant-backend-token.service"], check=True)
     print(" OK")
+    if not is_serving("https://backend.demo.taler.net/";):
+        fail(f"Merchant backend (with auth token) did not start correctly.")
     print_nn("Give default instance a bank account...")
     prepare_sandbox_account(
         sandbox_url=SANDBOX_URL,
@@ -1726,6 +1729,8 @@ def prepare(postgres_db_name):
     print_nn("Stopping the merchant with TALER_MERCHANT_TOKEN into the env...")
     subprocess.run(["systemctl", "--user", "stop", 
"taler-local-merchant-backend-token.service"], check=True)
     print(" OK")
+    if not is_serving("https://backend.demo.taler.net/";):
+        fail(f"Merchant backend (without auth token) did not start correctly.")
     print_nn("Restarting the merchant WITHOUT the auth-token in the env...")
     subprocess.run(["systemctl", "--user", "start", 
"taler-local-merchant-backend.service"], check=True)
     print(" OK")
@@ -1749,7 +1754,6 @@ def prepare(postgres_db_name):
     print_nn("Sleep 2 seconds to let the tip reserve settle...")
     time.sleep(2)
     print(" OK")
-    
     # Configure Sync.
     print_nn("Reset and init Sync DB..")
     Command([
@@ -1758,6 +1762,9 @@ def prepare(postgres_db_name):
         "--reset"]
     ).run()
     print(" OK")
+    print_nn("Stopping any running service..")
+    subprocess.run(["systemctl", "--user", "stop", "taler-local-*.service"], 
check=True)
+    print(" OK")
 
 @cli.command()
 def launch():

-- 
To stop receiving notification emails like this one, please contact
gnunet@gnunet.org.



reply via email to

[Prev in Thread] Current Thread [Next in Thread]