From e636826762f6fd71941a03146bcb11ac6c4925b5 Mon Sep 17 00:00:00 2001 From: imbeacon Date: Fri, 24 Nov 2023 09:41:27 +0200 Subject: [PATCH] Updated service RPC command to not to use alias --- thingsboard_gateway/gateway/tb_gateway_service.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/thingsboard_gateway/gateway/tb_gateway_service.py b/thingsboard_gateway/gateway/tb_gateway_service.py index e3686f74..fa266b67 100644 --- a/thingsboard_gateway/gateway/tb_gateway_service.py +++ b/thingsboard_gateway/gateway/tb_gateway_service.py @@ -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")