mirror of
https://github.com/GTNewHorizons/ThaumicHorizons.git
synced 2026-10-25 20:32:28 +00:00
28 lines
590 B
Bash
28 lines
590 B
Bash
if [[ -d "run/crash-reports" ]]; then
|
|
echo "Crash reports detected:"
|
|
cat $directory/*
|
|
exit 1
|
|
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
|
|
|
|
if grep --quiet 'Done .+ For help, type "help" or "?"' server.log; then
|
|
echo "Server didn't finish startup:"
|
|
cat server.log
|
|
exit 1
|
|
fi
|
|
|
|
echo "No crash reports detected"
|
|
exit 0
|
|
|