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:
@@ -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
|
||||
|
||||
@@ -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`
|
||||
|
||||
Reference in New Issue
Block a user