1
0
mirror of https://github.com/thingsboard/thingsboard-gateway synced 2025-10-26 22:31:42 +08:00

Updated service RPC command to not to use alias

This commit is contained in:
imbeacon
2023-11-24 09:41:27 +02:00
parent e9ec7fa57d
commit e636826762

View File

@@ -252,7 +252,7 @@ class TBGatewayService:
self.__rpc_processing_queue = SimpleQueue()
self.__rpc_scheduled_methods_functions = {
"restart": {"function": execv, "arguments": (executable, [executable.split(pathsep)[-1]] + argv)},
"reboot": {"function": system, "arguments": ("reboot 0",)},
"reboot": {"function": system, "arguments": ("shutdown -r now",)},
}
self.__rpc_processing_thread = Thread(target=self.__send_rpc_reply_processing, daemon=True,
name="RPC processing thread")