浏览代码

if things fail don't just wait forever

George Baugh 1 年之前
父节点
当前提交
1d2d715c9e
共有 1 个文件被更改,包括 6 次插入 和 0 次删除
  1. 6 0
      service/tpsgi.sh

+ 6 - 0
service/tpsgi.sh

@@ -30,6 +30,12 @@ done
 # We should obey the PATH set by this user, whose homedir is right here, ideally.
 bin/tpsgi --listen run/tpsgi.sock --workers 20 --user "$USERNAME" --daemonize --pid run/tpsgi.pid --chroot $(pwd)
 
+if [ $? ]
+then
+    echo "Could not start service!"
+    exit 1;
+fi
+
 # Wait until the socket file is ready
 until [ -e run/tpsgi.sock ]
 do