Fix sigterm handler shutdown call

This commit is contained in:
Kevin F 2022-02-10 17:38:22 -06:00
parent ed6e2d05b4
commit ebb75b136d

View File

@ -68,8 +68,6 @@ def _show_info_messages():
getourkeypair.get_keypair()[0][:52])) getourkeypair.get_keypair()[0][:52]))
def daemon(): def daemon():
"""Start Onionr's primary threads for communicator, API server, node, and LAN.""" """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: if main_pid and main_pid == pid:
logger.info( logger.info(
f"Received sigterm, shutting down gracefully. PID: {pid}", terminal=True) f"Received sigterm, shutting down gracefully. PID: {pid}", terminal=True)
localcommand.local_command('/shutdownclean') localcommand.local_command('/shutdown')
else: else:
logger.info( logger.info(
f"Recieved sigterm in child process or fork, exiting. PID: {pid}") f"Recieved sigterm in child process or fork, exiting. PID: {pid}")