Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #!/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
- #boot up UCS
- if [ ! -e .lock-ucs ] ; then
- touch .lock-ucs
- ./ucs 2>&1 > logs/ucs &
- fi
- #start up the official launcher
- if [ ! -e .lock-launcher ]; then
- touch .lock-launcher
- ./eqlaunch $LNAME 2>&1 > logs/launcher &
- fi
Advertisement
Add Comment
Please, Sign In to add comment