From b29f12625ccf3a69c06928056f4f6afc48104bdf Mon Sep 17 00:00:00 2001 From: Jeffrey Phillips Freeman <jeffrey.freeman@syncleus.com> Date: Sun, 25 Sep 2016 10:42:53 -0400 Subject: [PATCH] Added an exit message. --- src/apex/cli.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/apex/cli.py b/src/apex/cli.py index 9000bba..0b4da39 100644 --- a/src/apex/cli.py +++ b/src/apex/cli.py @@ -179,7 +179,7 @@ def main(verbose, configfile): running = False - click.echo('SIGINT caught, exiting APEX...') + click.echo('SIGINT caught, shutting down..') for plugin_module in plugin_modules: plugin_module.stop() @@ -188,6 +188,8 @@ def main(verbose, configfile): plugin_thread.join() for port in port_map.values(): port['tnc'].data_stream.close() + + click.echo('APEX successfully shutdown.') sys.exit(0) signal.signal(signal.SIGINT, sigint_handler) -- GitLab