From 842a750acea4f89ce0aa1a43c9aff33276055cdf Mon Sep 17 00:00:00 2001 From: dave Date: Fri, 27 Feb 2015 15:36:18 -0800 Subject: [PATCH] pass sigterm to supervisor --- start | 3 +++ 1 file changed, 3 insertions(+) diff --git a/start b/start index b8ff4e6..64557b2 100644 --- a/start +++ b/start @@ -1,5 +1,8 @@ #!/bin/bash +# Cleanly kill supervisor when container is stopped +trap 'kill $(jobs -p)' EXIT + # start services supervisord