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

+- Added back good old error reporting in ./unreal start

This commit is contained in:
stskeeps
2001-12-24 08:16:58 +00:00
parent 8480b860cf
commit 6ccda4cc95
2 changed files with 15 additions and 1 deletions
+1
View File
@@ -1020,3 +1020,4 @@ seen. gmtime warning still there
- Credits fixes
- Final release cleanups
- Updated /info
- Added back good old error reporting in ./unreal start
+14 -1
View File
@@ -1,10 +1,23 @@
#!/bin/sh
PID_FILE="@IRCDDIR@/ircd.pid"
PID_BACKUP="@IRCDDIR@/ircd.pid.bak"
if [ "$1" = "start" ] ; then
echo "Starting UnrealIRCd"
if [ -r $PID_FILE ]; then
mv -f $PID_FILE $PID_BACKUP
fi
@BINDIR@
sleep 1
if [ ! -r $PID_FILE ]; then
echo "Possible error encountered (IRCd seemily not started)"
echo "====================================================="
echo "Check above for possible errors, and this output of "
echo "ircd.log. If you cannot solve the problem, read"
echo "Unreal.nfo on where to get support"
echo "====================================================="
tail -n 5 @IRCDDIR@/ircd.log
fi
elif [ "$1" = "stop" ] ; then
echo "Stopping UnrealIRCd"
kill -9 `cat $PID_FILE`