From ebb75b136d1947685bb02139ec7f76692534eebe Mon Sep 17 00:00:00 2001 From: Kevin F Date: Thu, 10 Feb 2022 17:38:22 -0600 Subject: [PATCH] Fix sigterm handler shutdown call --- src/onionrcommands/daemonlaunch/__init__.py | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/src/onionrcommands/daemonlaunch/__init__.py b/src/onionrcommands/daemonlaunch/__init__.py index 97f46302..8824e28b 100755 --- a/src/onionrcommands/daemonlaunch/__init__.py +++ b/src/onionrcommands/daemonlaunch/__init__.py @@ -68,8 +68,6 @@ def _show_info_messages(): getourkeypair.get_keypair()[0][:52])) - - def daemon(): """Start Onionr's primary threads for communicator, API server, node, and LAN.""" @@ -80,7 +78,7 @@ def daemon(): if main_pid and main_pid == pid: logger.info( f"Received sigterm, shutting down gracefully. PID: {pid}", terminal=True) - localcommand.local_command('/shutdownclean') + localcommand.local_command('/shutdown') else: logger.info( f"Recieved sigterm in child process or fork, exiting. PID: {pid}")