client: add clever service restart after map uploading

This commit is contained in:
Arthur Golubtsov
2019-03-29 11:49:09 +00:00
parent b66ca76725
commit 93a248c2e4

View File

@@ -1,4 +1,5 @@
from __future__ import print_function
import os
import sys
import socket
import struct
@@ -277,6 +278,8 @@ try:
print("Command from server:", command, args)
if command == "writefile":
recive_file(args['filename'])
if bool(args['clever_restart']):
os.system("systemctl restart clever")
elif command == 'config_write':
write_to_config(args['section'], args['option'], args['value'])
elif command == 'config_reload':