|
|
|
@ -14,6 +14,18 @@ if [ "$1" = "start" ] ; then
|
|
|
|
|
if [ -r $PID_FILE ] ; then
|
|
|
|
|
mv -f $PID_FILE $PID_BACKUP
|
|
|
|
|
fi
|
|
|
|
|
# Check if ~/Unreal3.4.x/unrealircd.conf exists but the file
|
|
|
|
|
# ~/unrealircd/conf/unrealircd.conf does not.
|
|
|
|
|
# If so, then assume a user-build and give the user a nice hint...
|
|
|
|
|
if [ ! -f @CONFDIR@/unrealircd.conf -a -f @BUILDDIR@/unrealircd.conf ]; then
|
|
|
|
|
echo ""
|
|
|
|
|
echo "There is no unrealircd.conf in @CONFDIR@"
|
|
|
|
|
echo "However I did find an unrealircd.conf in @BUILDDIR@"
|
|
|
|
|
echo "With UnrealIRCd 3.4.x you should no longer run the IRCd from @BUILDDIR@."
|
|
|
|
|
echo "You should 'cd @SCRIPTDIR@' and work from there."
|
|
|
|
|
echo "See https://www.unrealircd.org/docs/UnrealIRCd_files_and_directories"
|
|
|
|
|
exit 1
|
|
|
|
|
fi
|
|
|
|
|
@BINDIR@/unrealircd
|
|
|
|
|
sleep 1
|
|
|
|
|
if [ ! -r $PID_FILE ] ; then
|
|
|
|
|