Skip to content

Commit

Permalink
Updated service RPC command to not to use alias
Browse files Browse the repository at this point in the history
  • Loading branch information
imbeacon committed Nov 24, 2023
1 parent e9ec7fa commit e636826
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion thingsboard_gateway/gateway/tb_gateway_service.py
Original file line number Diff line number Diff line change
Expand Up @@ -252,7 +252,7 @@ def __init__(self, config_file=None):
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")
Expand Down

0 comments on commit e636826

Please sign in to comment.