Skip to content

Commit

Permalink
feat: ✨ script to automatically restart polydock when it segfaults
Browse files Browse the repository at this point in the history
  • Loading branch information
folke committed Jun 3, 2020
1 parent 52b9d75 commit afba7db
Showing 1 changed file with 15 additions and 0 deletions.
15 changes: 15 additions & 0 deletions bin/polydock.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
#!/usr/bin/env bash

me=$(realpath "$0")
dist=$(realpath $(dirname "$me")/../dist)

echo "startings"
exitCode=0
while true; do
gjs "$dist/polydock.js" $@
exitCode=$?
[ $exitCode -ne 139 ] && break
echo "[restarting]"
done

exit $exitCode

0 comments on commit afba7db

Please sign in to comment.