Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions appdaemon/__main__.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
"""
Expand All @@ -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:
Expand Down
Loading