From bbefb18e7bcb559f0fc8e059a62e5eeb66e5be28 Mon Sep 17 00:00:00 2001 From: dpedu Date: Fri, 27 Feb 2015 15:39:46 -0800 Subject: [PATCH] pass sigterm to supervisor --- start | 3 +++ 1 file changed, 3 insertions(+) mode change 100644 => 100755 start diff --git a/start b/start old mode 100644 new mode 100755 index 2d6c573..e0e7541 --- a/start +++ b/start @@ -1,5 +1,8 @@ #!/bin/bash +# Cleanly kill supervisor when container is stopped +trap 'kill $(jobs -p)' EXIT + if [ ! -f /home/admin/znc_configured ]; then echo "Welcome! I need to ask you a few questions to configure this ZNC instance for your liking. First, press enter choose and choose a time zone." read