X-Git-Url: http://git.onelab.eu/?a=blobdiff_plain;f=config%2Fsfa-config-tty;h=7e0c8bdcce95a3c7c37e612c01110273f7c9f43a;hb=f27128bd33db08114f264c4028ae667c962b64c5;hp=ce25b567caf922eb37abe6e780417452485e92a6;hpb=1a9718ae903eef6c6485c851a81c2f794e971ea2;p=sfa.git diff --git a/config/sfa-config-tty b/config/sfa-config-tty index ce25b567..7e0c8bdc 100755 --- a/config/sfa-config-tty +++ b/config/sfa-config-tty @@ -1,4 +1,4 @@ -#!/usr/bin/env python +#!/usr/bin/env python3 import os import sys @@ -28,7 +28,6 @@ usual_variables = [ "SFA_REGISTRY_ROOT_AUTH", "SFA_REGISTRY_HOST", "SFA_AGGREGATE_HOST", - "SFA_SM_HOST", "SFA_DB_HOST", ] @@ -230,7 +229,8 @@ def reload_service(): def restart_service(): services = ('sfa-db', 'sfa-aggregate', 'sfa-registry') for service in services: - restart = ("systemctl -q is-active {s} && {{ echo restarting {s} ; systemctl restart {s}; }}" + restart = ("systemctl -q is-active {s} && " + "{{ echo restarting {s} ; systemctl restart {s}; }}" .format(s=service)) os.system(restart)