diff --git a/appdaemon/__main__.py b/appdaemon/__main__.py index d745e9a10..c7b38cf63 100644 --- a/appdaemon/__main__.py +++ b/appdaemon/__main__.py @@ -341,6 +341,7 @@ def handle_sig(self, signum: int): Signals: SIGUSR1 will result in internal info being dumped to the DIAG log + SIGUSR2 will reload apps with modified code/config (useful in production_mode) SIGHUP will force a reload of all apps SIGINT and SIGTEM both result in AD shutting down """ @@ -351,6 +352,8 @@ def handle_sig(self, signum: int): self.AD.thread_async.call_async_no_wait(self.AD.threading.dump_threads) self.AD.thread_async.call_async_no_wait(self.AD.app_management.dump_objects) self.AD.thread_async.call_async_no_wait(self.AD.sched.dump_sun) + case signal.SIGUSR2: + self.AD.thread_async.call_async_no_wait(self.AD.app_management.check_app_updates, mode=UpdateMode.NORMAL) case signal.SIGHUP: self.AD.thread_async.call_async_no_wait(self.AD.app_management.check_app_updates, mode=UpdateMode.TERMINATE) case (signal.SIGINT | signal.SIGTERM) as sig: