Go Back   EQEmulator Home > EQEmulator Forums > Support > Support::Linux Servers

Support::Linux Servers Support forum for Linux EQEMu users.

Reply
 
Thread Tools Display Modes
  #1  
Old 04-17-2006, 05:59 AM
Arex
Hill Giant
 
Join Date: Jul 2004
Posts: 196
Default what bash script u use for run server?

Hi, i was thinking use a script for run server, but i have any doubts... if u use

#!/bin/sh
./world &
./zone &
./zone &
./zone &
./zone &

I get all things on same terminal, how can i get each zone in one independent terminal? I also would like to know how many zones are u running for a stable server with 10 players online?

Thank you in advance!
Reply With Quote
  #2  
Old 04-17-2006, 10:24 AM
Belfedia
Demi-God
 
Join Date: Jan 2005
Posts: 1,109
Default

I use only one script with eqemu 0.6.6 but 2 windows (for see log more clear, even if i have log files).

Code:
#!/bin/sh
export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:.
./world &
for start the world in one windows

I define eqlaunch name with zone in www facility in browser (127.0.0.1:9080)

I use ./eqlaunch NameOfLauncher in a second windows.
__________________
__________________________________________________ _____________________________________
I speak english like a spanish cow..., I speak spanish like a english pudding...
But I try to speak good french !!! (Non au langage SMS sur forum)
http://eqfroggy.new.fr : Froggy French Server Website.
Reply With Quote
  #3  
Old 04-18-2006, 12:39 PM
johane
Sarnak
 
Join Date: Sep 2005
Location: Gold Coast, Oz
Posts: 69
Default

Quote:
Originally Posted by Arex
Hi, i was thinking use a script for run server, but i have any doubts... if u use

#!/bin/sh
./world &
./zone &
./zone &
./zone &
./zone &

I get all things on same terminal, how can i get each zone in one independent terminal? I also would like to know how many zones are u running for a stable server with 10 players online?

Thank you in advance!
The following is what I remember, but since my Linux machine had a HDD failure, and I havent got another one up yet I can't check it. In particular, I'm not sure of the test off the top of my head.

Try this:

#!/bin/sh
#change this to where ever your server binaries are
GAMEDIR=/eqemu/server/bin

#Check world isnt already running.
# grep returns 1 of world not found, so ! $? should be zero
ps aux | grep world >> /dev/null
if [ ! $? ] ; then

cd $GAMEDIR
xterm -e ./world &
xterm -e ./zone &
xterm -e ./zone &
xterm -e ./zone &
xterm -e ./zone &

fi
Reply With Quote
  #4  
Old 07-06-2006, 11:05 AM
castlusion
Fire Beetle
 
Join Date: Jun 2006
Posts: 5
Default here is mine

Here is mine i just got it working on debian sarge
Code:
#!/bin/sh

case "$1" in
'start')
  echo "Starting EqEmu..."
  echo "  - starting world"
  ./world 2>&1 > logs/world &
  sleep 5
  ./zone  68.209.169.32 . 7791 192.168.0.100 2>&1 > logs/world &
  sleep 3
  ./zone  68.209.169.32 . 7792 192.168.0.100 2>&1 > logs/world &
  sleep 3
  ./zone  68.209.169.32 . 7793 192.168.0.100 2>&1 > logs/world &
  echo "  - starting zones"
  echo "... done";
  ;;
'stop')
  echo "Killing EqEmu...";
  killall world zone 2>/dev/null
  echo "... done"
  ;;
'restart')
  $0 stop
  sleep 1
  $0 start
  ;;
*)
echo "usage $0 start|stop|restart"
  ;;
esac
it is realy just a combation of what i found on boards and my own config ;')
Reply With Quote
  #5  
Old 07-08-2006, 04:38 AM
fathernitwit
Developer
 
Join Date: Jul 2004
Posts: 773
Default

you should not be starting zones yourself anymore, you sould just start the launcher and set it up in world HTTP to start zones.
Reply With Quote
Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

   

All times are GMT -4. The time now is 04:02 AM.


 

Everquest is a registered trademark of Daybreak Game Company LLC.
EQEmulator is not associated or affiliated in any way with Daybreak Game Company LLC.
Except where otherwise noted, this site is licensed under a Creative Commons License.
       
Powered by vBulletin®, Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Template by Bluepearl Design and vBulletin Templates - Ver3.3