From 1a6a3d795c555816401a00be0fda1e4bb2c5bbc7 Mon Sep 17 00:00:00 2001 From: Jonny Ervine Date: Thu, 22 Oct 2020 02:54:05 +0000 Subject: [PATCH] Prevent exit Altered print to input so that code does not exit/finish. This should keep the container running., --- smtp2qnap4slack.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/smtp2qnap4slack.py b/smtp2qnap4slack.py index 3f9076f..177f0a3 100644 --- a/smtp2qnap4slack.py +++ b/smtp2qnap4slack.py @@ -88,4 +88,4 @@ if __name__ == '__main__': handler = CustomHandler() controller = MyController(handler, hostname=LHOST, port=LPORT) controller.start() - print('SMTP server is running.\n') + input('SMTP server is running.\n') \ No newline at end of file