acassiolink
(usa Outra)
Enviado em 23/10/2008 - 16:28h
Ola gente sou novo por aqui,alisa nao entendo muito de Linux mais enfim estou aprendendo
E o seguinte,tenho um servidor dedicado ( Xeon quad-core com 8gb de memoria e link 1000mb full ) estou montando um servidor de MMORPG ( jogo online..Lineage 2,ragnarok essas coisas )bla bla blah
Enfim o emulador roda em linux e estou rodando em Debian 4 32 bits
a pasta do servidor eu coloquei no direitorio /usr/( pasta se chama pw ) entao fica assim /usr/pw
e dentro dela temos a /home e dentro da home temos (authd, gacd, gamed, gamedbd, gdeliveryd, gfactiond, glinkd, logservice, uniquenamed)
Ok e tem um arquivo chamado start_servers.sh que contem as linhas para iniciar o servidor,ele e assim :
......................
#!/bin/sh
PW_PATH=/home
echo "=== XAMPP ==="
cd /opt/lampp
./lampp startapache
./lampp startmysql
cd /home
if [ ! -d $PW_PATH/logs ]; then
mkdir $PW_PATH/logs
fi
echo "=== LOGSERVICE ==="
cd $PW_PATH/logservice; ./logservice logservice.conf >$PW_PATH/logs/logservice.log &
sleep 2
echo "=== UNIQUENAMED ==="
cd $PW_PATH/uniquenamed; ./uniquenamed gamesys.conf >$PW_PATH/logs/uniquenamed.log &
sleep 3
echo "=== AUTH ==="
cd $PW_PATH/authd/; ./authd &
sleep 10
echo "=== GAMEDBD ==="
cd $PW_PATH/gamedbd; ./gamedbd gamesys.conf >$PW_PATH/logs/gamedbd.log &
sleep 5
echo "=== GACD ==="
cd $PW_PATH/gacd; ./gacd gamesys.conf >$PW_PATH/logs/gacd.log &
sleep 5
echo "=== GFACTIOND ==="
cd $PW_PATH/gfactiond; ./gfactiond gamesys.conf >$PW_PATH/logs/gfactiond.log &
sleep 5
echo "=== GDELIVERYD ==="
cd $PW_PATH/gdeliveryd; ./gdeliveryd gamesys.conf >$PW_PATH/logs/gdeliveryd.log &
sleep 5
echo "=== GLINKD ==="
cd $PW_PATH/glinkd; ./glinkd gamesys.conf 1 >$PW_PATH/logs/glink.log &
cd $PW_PATH/glinkd; ./glinkd gamesys.conf 2 >$PW_PATH/logs/glink2.log &
cd $PW_PATH/glinkd; ./glinkd gamesys.conf 3 >$PW_PATH/logs/glink3.log &
cd $PW_PATH/glinkd; ./glinkd gamesys.conf 4 >$PW_PATH/logs/glink4.log &
sleep 5
echo "=== MAIN WORLD ==="
cd $PW_PATH/gamed; ./gs gs01 >$PW_PATH/logs/game1.log
sleep 10
echo "=== OTHER WORLD ==="
./gs gs.conf gmserver.conf gsalias.conf arena01 arena02 arena03 arena04 is01 is02 is05 is06 is07 is08 is09 is10 is11 is12 is13 is14 is15 is16 is17 is18 is19 is20 is21 is22 is23 is24 is25 is26 bg01 bg02 bg03 bg04 bg05 bg06 >$PW_PATH/logs/game_all.log
sleep 5
echo "Servers started!"
..............................
Enfim logo voces veem que ele tem um tal de PW_PATH que me parece que e para redirecionar os diretorios,mais eu vivo tentando e sempre da isso :
xxxxx:/usr/pw/home# ./start_servers.sh
./start_servers.sh: line 3: /usr/pw/home=/home: No such file or directory
=== XAMPP ===
XAMPP: XAMPP-Apache is already running.
XAMPP: XAMPP-MySQL is already running.
=== LOGSERVICE ===
./start_servers.sh: line 16: cd: /logservice: No such file or directory
./start_servers.sh: line 16: ./logservice: No such file or directory
=== UNIQUENAMED ===
./start_servers.sh: line 20: cd: /uniquenamed: No such file or directory
./start_servers.sh: line 20: ./uniquenamed: is a directory
=== AUTH ===
./start_servers.sh: line 24: cd: /authd/: No such file or directory
./start_servers.sh: line 24: ./authd: No such file or directory
=== GAMEDBD ===
./start_servers.sh: line 28: cd: /gamedbd: No such file or directory
./start_servers.sh: line 28: ./gamedbd: is a directory
..
Alquem sabe como redirecionar certinho isto ?