--- a/svghmi/svghmi_server.py Fri Nov 08 11:35:01 2019 +0100
+++ b/svghmi/svghmi_server.py Fri Nov 08 11:35:56 2019 +0100
@@ -17,6 +17,11 @@
from autobahn.websocket.protocol import WebSocketProtocol
from autobahn.twisted.resource import WebSocketResource
+ from runtime.spawn_subprocess import call + from subprocess import call @@ -124,10 +129,27 @@
svghmi_send_thread = Thread(target=SendThreadProc, name="SVGHMI Send")
svghmi_send_thread.start()
+ restart_kiosk = ["/root/S60kiosk", "start"] + print(_("Couldn't restart kiosk service")) # Called by PLCObject at stop
def _runtime_svghmi0_stop():
global svghmi_listener, svghmi_root, svghmi_send_thread, svghmi_session
+ restart_kiosk = ["/root/S60kiosk", "stop"] + print(_("Couldn't restart kiosk service")) if svghmi_session is not None:
svghmi_root.delEntity("ws")