Преглед на файлове

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.
 # 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)
 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
 # Wait until the socket file is ready
 until [ -e run/tpsgi.sock ]
 until [ -e run/tpsgi.sock ]
 do
 do