restart core after crach #132

This commit is contained in:
Alireza Ahmadi
2024-05-26 10:35:08 +02:00
parent c179bf8a37
commit c3debcec5a
+8
View File
@@ -42,4 +42,12 @@ do
;; ;;
esac esac
fi fi
# Check if sin-box crashed
if ! kill -0 $tokill > /dev/null 2>&1; then
if [ "$signal" != "stop" ]; then
echo "Sing-Box with PID $tokill crashed. Breaking the loop..."
break
fi
fi
done done