浏览代码

debug output of main script

Grant Limberg 1 周之前
父节点
当前提交
c9c8e95d60
共有 1 个文件被更改,包括 5 次插入0 次删除
  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