1
This commit is contained in:
parent
d9425ea46e
commit
460e3f39c8
5
hlna.py
5
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")
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user