Selaa lähdekoodia

debug output of main script

Grant Limberg 1 viikko sitten
vanhempi
commit
c9c8e95d60
1 muutettua tiedostoa jossa 5 lisäystä ja 0 poistoa
  1. 5 0
      ext/central-controller-docker/main-new.sh

+ 5 - 0
ext/central-controller-docker/main-new.sh

@@ -165,3 +165,8 @@ export GLIBCXX_FORCE_NEW=1
 export GLIBCPP_FORCE_NEW=1
 export LD_PRELOAD="/opt/conda/envs/central_controller/lib/libjemalloc.so.2"
 exec /usr/local/bin/zerotier-one -p${ZT_CONTROLLER_PORT:-$DEFAULT_PORT} /var/lib/zerotier-one
+if [ $? -ne 0 ]; then
+    echo '*** FAILED: zerotier-one exited unexpectedly'
+    cat /var/lib/zerotier-one/local.conf
+    exit 1
+fi