[ARVADOS] updated: 3f99a8c6db9103420bccf6b01ba85ed1cef83cde

git at public.curoverse.com git at public.curoverse.com
Mon Mar 23 22:32:23 EDT 2015


Summary of changes:
 docker/keepproxy/run-keepproxy.in | 8 +++++++-
 1 file changed, 7 insertions(+), 1 deletion(-)

       via  3f99a8c6db9103420bccf6b01ba85ed1cef83cde (commit)
      from  78691191dfa23c930a00c6d5cb6dcd4ce30b1a5e (commit)

Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.


commit 3f99a8c6db9103420bccf6b01ba85ed1cef83cde
Author: Peter Amstutz <peter.amstutz at curoverse.com>
Date:   Mon Mar 23 22:36:01 2015 -0400

    5539: Retry keepproxy if it quits (this happens when restarting the container,
    the api server isn't ready yet, so need to keep trying).

diff --git a/docker/keepproxy/run-keepproxy.in b/docker/keepproxy/run-keepproxy.in
index 08fc441..4bd934d 100755
--- a/docker/keepproxy/run-keepproxy.in
+++ b/docker/keepproxy/run-keepproxy.in
@@ -6,4 +6,10 @@ export ARVADOS_API_HOST_INSECURE=yes
 # to get one while building the images
 export ARVADOS_API_TOKEN=@@API_SUPERUSER_SECRET@@
 
-exec keepproxy -listen=':9100'
+read pid cmd state ppid pgrp session tty_nr tpgid rest < /proc/self/stat
+trap "kill -TERM -$pgrp; exit" HUP EXIT TERM QUIT
+
+while /bin/true ; do
+    keepproxy -listen=':9100'
+    sleep 1
+done

-----------------------------------------------------------------------


hooks/post-receive
-- 




More information about the arvados-commits mailing list