From 93a248c2e41033bcfd2aca1964e6f4c7fae5e539 Mon Sep 17 00:00:00 2001 From: Arthur Golubtsov Date: Fri, 29 Mar 2019 11:49:09 +0000 Subject: [PATCH] client: add clever service restart after map uploading --- Drone/client.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/Drone/client.py b/Drone/client.py index b129aea..f939ac5 100644 --- a/Drone/client.py +++ b/Drone/client.py @@ -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':