mirror of
https://github.com/GTNewHorizons/Postea.git
synced 2026-11-22 05:02:27 +00:00
23 lines
482 B
Bash
Executable File
23 lines
482 B
Bash
Executable File
directory="run/crash-reports"
|
|
if [[ -d $directory ]]; 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
|
|
|
|
echo "No crash reports detected"
|
|
exit 0
|
|
|