View Single Post
  #10  
Old 01-10-2010, 05:01 PM
prickle
Hill Giant
 
Join Date: Sep 2009
Posts: 147
Default

This line from the tutorial I linked (the Debian tutorial) sets up the default files:
ln -s ../source/EQEmu-0.7.0-1118/utils/defaults/* .

I personally perfer to copy the files so I use:
Code:
cp -R <build dir>/utils/defaults/* <new serer dir>/
That will copy the default eqemu_config.xml file to your server dir. However, it will be named "eqemu_config.xml.full". Change the name of that file to "eqemu_config.xml" with the following commands:
Code:
rm -f eqemu_config.xml
mv eqemu_config.xml.full eqemu_config.xml
Then edit the file to suit your needs.

The start up scripts that work are also found in the tutorial that I linked earlier:

"start" script:
Code:
#!/bin/sh

#ulimit -c 99999999

rm -f .zone_shutdown
rm -f .world_shutdown

set -x

LNAME="zone"     #launcher name
if [ "$1" = "test" ]; then
        LNAME="test"
fi

P=`pwd`
export LD_LIBRARY_PATH="$LD_LIBRARY_PATH:$P"

#make sure we have a place to log
mkdir -p logs 2>&1 > /dev/null

#clear out old logs, if both are stopped
if [ ! -e .lock-zones -a ! -e .lock-world ] ; then
  for f in logs/eqemu_*.log
  do
        if [ "$f" = "logs/eqemu_commands_zone.log" ]; then
                continue;
        fi

        rm -f $f
  done
fi

#boot up world
if [ ! -e .lock-world ] ; then
        touch .lock-world
#       ./world 2>&1 > logs/world &
        ./persist_world 2>&1 > logs/world &
        # wait for shared memory to load
        sleep 15
fi

#start up the official launcher
if [ ! -e .lock-launcher ]; then
        touch .lock-launcher
        ./eqlaunch $LNAME 2>&1 > logs/launcher &
fi
"stop" script:
Code:
#!/bin/sh

touch .zone_shutdown
touch .world_shutdown

killall world eqlaunch zone
sleep 3

if ps ax|grep -e 'w[o]rld' -e 'z[o]ne' -e 'eq[l]aunch' >/dev/null; then
                killall -9 world eqlaunch zone
                sleep 2
fi

./cleanipc
rm -f .lock-zones .lock-world .lock-login .lock-launcher
"persist_world" script:
Code:
#!/bin/sh

#ulimit -c 99999999

while true
do
        ./world "$@"
        if [ -r ".world_shutdown" ]; then
                exit 0
        fi

        echo `date` "World crashed." >>crashlog
        sleep 2
done
Once you create those files you need to make them "executable". You can do that with the following command:
Code:
chmod +x <file name>
Reply With Quote