1
This commit is contained in:
parent
b8429cf7df
commit
2316ac799a
2
hlna.py
2
hlna.py
@ -800,9 +800,9 @@ def start_stop(action, g, m):
|
|||||||
check_exist_servers(g)
|
check_exist_servers(g)
|
||||||
name_servers = choose_map(g, m)
|
name_servers = choose_map(g, m)
|
||||||
for i in name_servers:
|
for i in name_servers:
|
||||||
data = read_yaml(i, g="ark", flag=True)
|
|
||||||
if action == "stop" or action == "restart":
|
if action == "stop" or action == "restart":
|
||||||
rcon_local(i, "SaveWorld")
|
rcon_local(i, "SaveWorld")
|
||||||
|
data = read_yaml(i, g="ark", flag=True)
|
||||||
x = os.system(f"systemctl --user {action} ark_{data['SessionName'].lower()}.service")
|
x = os.system(f"systemctl --user {action} ark_{data['SessionName'].lower()}.service")
|
||||||
|
|
||||||
if x == 0:
|
if x == 0:
|
||||||
|
Loading…
Reference in New Issue
Block a user