[#272] Support for external stop/restart control on the application #273

Merged
blacklight merged 18 commits from 272/external-proc-controller into master 2023-08-15 21:34:44 +02:00
1 changed files with 12 additions and 1 deletions
Showing only changes of commit c11bc69a66 - Show all commits

View File

@ -321,7 +321,18 @@ def main(*args: str):
Application entry point.
"""
app = Application.from_cmdline(args)
app.run()
try:
app.run()
except KeyboardInterrupt:
pass
log.info('Application stopped')
return 0
if __name__ == '__main__':
sys.exit(main(*sys.argv[1:]))
# vim:sw=4:ts=4:et: