We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 7da456d commit b31053fCopy full SHA for b31053f
Base/entry_point.sh
@@ -1,3 +1,15 @@
1
#!/usr/bin/env bash
2
3
-/usr/bin/supervisord --configuration /etc/supervisord.conf
+/usr/bin/supervisord --configuration /etc/supervisord.conf &
4
+
5
+SUPERVISOR_PID=$!
6
7
+function shutdown {
8
+ echo "Trapped SIGTERM/SIGINT/x so shutting down supervisord..."
9
+ kill -s SIGTERM ${SUPERVISOR_PID}
10
+ wait ${SUPERVISOR_PID}
11
+ echo "Shutdown complete"
12
+}
13
14
+trap shutdown SIGTERM SIGINT
15
+wait ${SUPERVISOR_PID}
0 commit comments