Problem mit Core verteilung

03/12/2013 01:28 ♛LeguaN♛#1
Ich benutze die Daroo 1678 Files
und bei der Coreverteilung weiß ich nicht was ich in die Start.sh und Close.sh eintragen soll. Dann hab ich es so versucht. Jetzt kann ich die Channels nicht mehr starten bitte um hilfe.
Start.sh
Code:
#/bin/sh
cd db
./db &
cd ..
cd auth
./auth &
cd ..
cd channel1_1
./game &
cd ..
cd channel1_2
./game &
cd ..
cd channel1_3
./game &
cd ..
cd channel2_1
./game &
cd ..
cd channel2_2
./game &
cd ..
cd channel2_3
./game &
cd ..
cd game99
./game &
cd .. 
echo -e "\033[31m Server erfolgreich gestartet!\033[0m"
exit
Close.sh
Code:
#!/bin/sh
echo -e "\033[31m Stoppe Channel 99...\033[0m"
cd game99 && sh shut.sh
cd ..
echo -e "\033[31m Stoppe Auth-Server...\033[0m"
cd auth && sh shut.sh
cd ..
echo -e "\033[31m Stoppe DB-Server...\033[0m"
cd db && sh shut.sh
cd ..
echo -e "\033[31m Stoppe Channel 1...\033[0m"
cd channel1_1 && sh shut.sh
cd ..
cd channel1_2 && sh shut.sh
cd ..
cd channel1_3 && sh shut.sh
cd ..
echo -e "\033[31m Stoppe Channel 2...\033[0m"
cd channel2_1 && sh shut.sh
cd ..
cd channel2_2 && sh shut.sh
cd ..
cd channel2_3 && sh shut.sh
cd ..
exit
Hoffe auf Antworten


Die Start.sh und Close.sh noch als download im Anhang
03/12/2013 01:53 .Onlyx3#2
Wie sollen wir dir eine Start / Close.sh machen wenn wir deine Coreverteilung nicht kennen?..
03/12/2013 08:51 Lauling#3
Ich hab maln video dazu gemacht, guck ma YT oder hier im Forum. Ansonsten melde dich in meinem Board.
03/12/2013 16:26 nostradame37#4
Gehe Nach Diesem prinzip vor einfach anpassen

PHP Code:
#!/bin/sh


#db
cd /home/game/db && ./db &
sleep 5
cd 
..

#auth
cd /home/game/auth && ./auth &
sleep 5
cd 
..

#channel1_core1
cd /home/game/channel1/core1 && ./channel1_core1 &
sleep 5
cd 
..

#channel1_core2
cd /home/game/channel1/core2 && ./channel1_core2 &
sleep 5
cd 
..

#channel1_core3
cd /home/game/channel1/core3 && ./channel1_core3 &
sleep 5
cd 
..

#channel1_core4
cd /home/game/channel1/core4 && ./channel1_core4 &
sleep 5
cd 
..

#channel2_core1
cd /home/game/channel2/core1 && ./channel2_core1 &
sleep 5
cd 
..

#channel2_core2
cd /home/game/channel2/core2 && ./channel2_core2 &
sleep 5
cd 
..

#channel2_core3
cd /home/game/channel2/core3 && ./channel2_core3 &
sleep 5
cd 
..

#channel2_core4
cd /home/game/channel2/core4 && ./channel2_core4 &
sleep 5
cd 
..

#channel3_core1
cd /home/game/channel3/core1 && ./channel3_core1 &
sleep 5
cd 
..

#channel3_core2
cd /home/game/channel3/core2 && ./channel3_core2 &
sleep 5
cd 
..

#channel3_core3
cd /home/game/channel3/core3 && ./channel3_core3 &
sleep 5
cd 
..

#channel3_core4
cd /home/game/channel3/core4 && ./channel3_core4 &
sleep 5
cd 
..

#channel4_core1
cd /home/game/channel4/core1 && ./channel4_core1 &
sleep 5
cd 
..

#channel4_core2
cd /home/game/channel4/core2 && ./channel4_core2 &
sleep 5
cd 
..

#channel4_core3
cd /home/game/channel4/core3 && ./channel4_core3 &
sleep 5
cd 
..

#channel4_core4
cd /home/game/channel4/core4 && ./channel4_core4 &
sleep 5
cd 
..

#channel99_core1
cd /home/game/channel99/core1 && ./channel99_core1 &
sleep 5
cd 
..

#channel99_core2
cd /home/game/channel99/core2 && ./channel99_core2 &
sleep 5
cd 
..
chmod +/home/game/check.sh
echo 'Server started!';
cd 
03/13/2013 10:35 ♛LeguaN♛#5
Quote:
Ich hab maln video dazu gemacht, guck ma YT oder hier im Forum. Ansonsten melde dich in meinem Board.
Ich melde mich bei dir in skype