1
0
mirror of https://github.com/unrealircd/unrealircd.git synced 2026-06-12 17:14:46 +02:00

Show better error on ./unrealircd start when .so files are missing.

And refer to https://www.unrealircd.org/docs/FAQ#shared-library-error
This commit is contained in:
Bram Matthys
2022-12-12 09:13:50 +01:00
parent 165639a007
commit b7f2ce9fd8
2 changed files with 22 additions and 7 deletions
+15 -6
View File
@@ -42,15 +42,24 @@ if [ "$1" = "start" ] ; then
fi
@BINDIR@/unrealircd
if [ $? -ne 0 ] ; then
echo "====================================================="
echo "UnrealIRCd failed to start. Check above for possible errors."
echo "If you don't understand the problem, then have a look at our:"
echo "* FAQ (Frequently Asked Questions): https://www.unrealircd.org/docs/FAQ"
echo "* Documentation: https://www.unrealircd.org/docs/"
echo "====================================================="
if [ -r $PID_BACKUP ] ; then
mv -f $PID_BACKUP $PID_FILE
fi
# Try to be helpful...
if ldd @BINDIR@/unrealircd 2>&1|grep -qF '=> not found'; then
echo "========================================================"
echo "UnrealIRCd failed to start due to missing libraries."
echo "Maybe you need to recompile UnrealIRCd? See"
echo "https://www.unrealircd.org/docs/FAQ#shared-library-error"
echo "========================================================"
else
echo "====================================================="
echo "UnrealIRCd failed to start. Check above for possible errors."
echo "If you don't understand the problem, then have a look at our:"
echo "* FAQ (Frequently Asked Questions): https://www.unrealircd.org/docs/FAQ"
echo "* Documentation: https://www.unrealircd.org/docs/"
echo "====================================================="
fi
exit 1
fi
# Now check if we need to create a crash report.