Ich habe seit ein paar Stunden ein Problem bei den Daroo Files und komme nicht weiter.
Undzwar geht es um die start und stop shells.
start.sh
Code:
#/bin/sh ORIGCHANNELS=$(cat ./daroo/channels.txt) if [ "$1" != '' ] && [ "$1" = "quickstart" ] && [ "$2" != '' ];then if [ "$2" -le $ORIGCHANNELS ];then CHANNELS="$2" else exit fi else echo -e "\033[31m Wieviele CHs sollen hochgefahren werden?\033[0m" read CHANNELS fi if [ "$CHANNELS" -gt $ORIGCHANNELS ];then echo -e "\033[31m Zu viele CHs (max $ORIGCHANNELS !)\033[0m" exit fi echo -e "\033[31m Starte DB...\033[0m" cd db ./db & cd .. echo -e "\033[31m Starte Auth...\033[0m" cd auth ./auth & cd .. while [ $CHANNELS -ge 1 ] do echo -e "\033[31m Starte CH "$CHANNELS" ...\033[0m" sleep 1 cd "./channel"$CHANNELS/ ./game & sleep 1 cd .. CHANNELS=$(( $CHANNELS-1 )) sleep 1 done echo -e "\033[31m Starte game99...\033[0m" cd ./game99 ./game & cd .. sleep 4 echo -e "\033[31m Server ist hoch!\033[0m"
Also habe ich nach
Code:
cd "./channel"$CHANNELS/
Jedoch funktioniert das nicht.
Wenn ich versuche 2 Channels zu starten, fährt der zweite hoch und bei dem ersten steht
Code:
Can not open [CONFIG]
stop.sh
Code:
#!/bin/sh
CHANNELS=$(cat ./daroo/channels.txt)
while [ $CHANNELS -ge 1 ]
do
echo -e "\033[31m Stoppe CH "$CHANNELS" ...\033[0m"
cd "./channel"$CHANNELS && sh shut.sh
cd ..
cd "./channel"$CHANNELS && sh shut2.sh
cd ..
cd "./channel"$CHANNELS && sh shut3.sh
cd ..
CHANNELS=$(( $CHANNELS-1 ))
done
echo -e "\033[31m Stoppe game99...\033[0m"
cd game99 && sh shut.sh
cd ..
echo -e "\033[31m Stoppe Auth...\033[0m"
cd auth && sh shut.sh
cd ..
echo -e "\033[31m Stoppe DB...\033[0m"
cd db && sh shut.sh
cd ..
Deswegen shut, shut2, shut3.
Jedoch, nachdem ich das shell ausführe steht da
Code:
Stoppe CH 2 ... server is not running. server is not running. server is not running. Stoppe CH 1 ... server is not running. server is not running. server is not running. Stoppe game99... kill: 1143: No such process Stoppe Auth... kill: 1209: No such process Stoppe DB... server is not running.
Aber die stop.sh scheint das nicht zu bemerken.
Und trotzt der ausführung wir mein server nicht runtergefahren.
Was ist hier das Problem?
Falls ihr noch Fragen habt lasst es mich wissen






