Hey ich hab nochmal ein kleines problem wenn ich denn command sh start.sh ausführe passiert das!
Vielleicht kann mir da ja jemand helfen
root@host:/usr/home/game # sh start.sh
1 - CH1
1
Startet den Server ..
game1_1 is not running
./auto.sh: ./game1_1: not found
game1_2 is not running
./auto.sh: ./game1_2: not found
game1_3 is not running
./auto.sh: ./game1_3: not found
game1_4 is not running
./auto.sh: ./game1_4: not found
game1_5 is not running
./auto.sh: ./game1_5: not found
game1_1 is not running
./auto.sh: ./game1_1: not found
game1_6 is not running
./auto.sh: ./game1_6: not found
game1_2 is not running
./auto.sh: ./game1_2: not found
game1_7 is not running
./auto.sh: ./game1_7: not found
game1_3 is not running
./auto.sh: ./game1_3: not found
game1_8 is not running
./auto.sh: ./game1_8: not found
game1_4 is not running
./auto.sh: ./game1_4: not found
game99 is not running
./auto.sh: ./game99: not found
game1_5 is not running
./auto.sh: ./game1_5: not found
mark_server is not running
./auto.sh: ./mark_server: not found
game1_1 is not running
./auto.sh: ./game1_1: not found
game1_6 is not running
./auto.sh: ./game1_6: not found
auth is not running
./auto.sh: ./auth: not found
game1_2 is not running
./auto.sh: ./game1_2: not found
game1_7 is not running
Der Loginserver wurde gestartet.
./auto.sh: ./game1_7: not found
game1_3 is not running
./auto.sh: ./game1_3: not found
game1_8 is not running
./auto.sh: ./game1_8: not found
Alle Channels wurden gestartet!
Mein start.sh
#!/bin/sh
PRELOAD_LIB="/home/cepherion/share/exp_table.so"
echo -e "\033[31m
1 - CH1\n"
read anzahl
case $anzahl in
1*)
echo -e "\033[31m Startet den Server ..\033[0m"
cd ./channel1/core1 && ./auto.sh &
sleep 2
cd ./channel1/core2 && ./auto.sh &
sleep 2
cd ./channel1/core3 && ./auto.sh &
sleep 2
cd ./channel1/core4 && ./auto.sh &
sleep 2
cd ./channel1/core5 && ./auto.sh &
sleep 2
cd ./channel1/core6 && ./auto.sh &
sleep 2
cd ./channel1/core7 && ./auto.sh &
sleep 2
cd ./channel1/core8 && ./auto.sh &
sleep 2
cd ./game99 && ./auto.sh &
sleep 2
cd ./mark_server && ./auto.sh &
sleep 2
cd ./auth && ./auto.sh &
sleep 2
echo -e "\033[31m Der Loginserver wurde gestartet.\n
\033[0m"
sleep 2
clear
echo -e "\033[31m Alle Channels wurden gestartet!\033[0m"
cd ..
;;
esac
Meine auto.sh
#!/bin/sh
SERVICE='game1_1'
PRELOAD=$(cat /usr/home/kev/preload_game.txt)
START="${PRELOAD} ./${SERVICE} &"
while ( : ) do
if ps ax | grep -v grep | grep $SERVICE > /dev/null
then
true
else
echo "$SERVICE is not running"
$START
fi
sleep 10
done