From 460e3f39c88d2df7a4a25de8470e49f1dd9ab757 Mon Sep 17 00:00:00 2001 From: xpamych Date: Mon, 29 May 2023 22:09:01 +0300 Subject: [PATCH] 1 --- hlna.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/hlna.py b/hlna.py index f3e9edc..441f71e 100755 --- a/hlna.py +++ b/hlna.py @@ -800,12 +800,13 @@ def start_stop(action, g, m): check_exist_servers(g) name_servers = choose_map(g, m) for i in name_servers: - print(action) + if action == stop or action == restart: + print(action) + print_line(i) rcon_local(i, "SaveWorld") data = read_yaml(i, g="ark", flag=True) x = os.system(f"systemctl --user {action} ark_{data['SessionName'].lower()}.service") - if x == 0: print_line(f"Готово {action} для {g} {i}", flag="GREEN")