mirror of
https://github.com/GTNewHorizons/Postea.git
synced 2026-11-12 08:27:33 +00:00
add more checks for server not working
This commit is contained in:
1 parent
fb3beeb4db
commit
f795717040
1 file changed
+17
-4
@@ -1,9 +1,22 @@
|
||||
directory="run/crash-reports"
|
||||
if [ -d $directory ]; then
|
||||
if [[ -d $directory ]]; then
|
||||
echo "Crash reports detected:"
|
||||
cat $directory/*
|
||||
exit 1
|
||||
else
|
||||
echo "No crash reports detected"
|
||||
exit 0
|
||||
fi
|
||||
|
||||
if [[ grep --quiet "Fatal errors were detected" server.log ]]; then
|
||||
echo "Fatal errors detected:"
|
||||
cat server.log
|
||||
exit 1
|
||||
fi
|
||||
|
||||
if [[ grep --quiet "The state engine was in incorrect state ERRORED and forced into state SERVER_STOPPED" server.log ]]; then
|
||||
echo "Server force stopped:"
|
||||
cat server.log
|
||||
exit 1
|
||||
fi
|
||||
|
||||
echo "No crash reports detected"
|
||||
exit 0
|
||||
|
||||
Reference in new issue
Block a user