We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 92ce674 commit 5acf3a4Copy full SHA for 5acf3a4
docker/start.py
@@ -571,6 +571,11 @@ def main():
571
572
start_rest_thread(logger)
573
574
+ # Ideally the signal handlers should be installed as early as possible,
575
+ # however that does not play well with the worker pool communication used by do_sync().
576
+ signal.signal(signal.SIGTERM, signal_handler)
577
+ signal.signal(signal.SIGINT, signal_handler)
578
+
579
# Start Tomcat last. It will be the foreground process.
580
logger.info("Starting Tomcat")
581
global tomcat_popen
@@ -592,7 +597,4 @@ def signal_handler(signum, frame):
592
597
593
598
594
599
if __name__ == "__main__":
595
- signal.signal(signal.SIGTERM, signal_handler)
596
- signal.signal(signal.SIGINT, signal_handler)
-
600
main()
0 commit comments