Nu se opreste serverul cu sh stop.sh

Înainte de a posta o problemă, caută în acest forum și poate găsești rezolvare.
Avatar utilizator
ITFilip
Nou Venit

Nou Venit
Mesaje: 8
Membru din: 04 Dec 2020, 18:41
Server: Imperialys
Regat: Shinsoo
Aprecieri: 2  
Mulţumiri: 0
Discord: Copiază ID
Medalii

Petrinel scrie: ↑07 Dec 2020, 08:57
ITFilip scrie: ↑07 Dec 2020, 08:11
Petrinel scrie: ↑07 Dec 2020, 00:09 lasa si tu stop.sh aici , poate nu ai locatiile bune la stop.sh
#/bin/sh
CHANNELS=$(cat ./daroo/channels.txt)
while [ $CHANNELS -ge 1 ]
do
echo -e "\033[31m Stoppe Channel "$CHANNELS" ...\033[0m"
cd "./channel"$CHANNELS && sh shut.sh
cd ..
CHANNELS=$(( $CHANNELS-1 ))
done
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 ..
dai in loc de sh stop.sh dai sh shut.sh
Salut , nu merge am incercat si imi apare asta : cannot open shut.sh: No such file or directory
Avatar utilizator
ITFilip
Nou Venit

Nou Venit
Mesaje: 8
Membru din: 04 Dec 2020, 18:41
Server: Imperialys
Regat: Shinsoo
Aprecieri: 2  
Mulţumiri: 0
Discord: Copiază ID
Medalii

Am intrat in joc si am dat /shutdown , dar acum nu mai porneste ..Ma poate ajuta cineva ? Scrie ca e 1 Ch deschis dar cand ma bag in joc sa ma loghez spune ca Serverul nu e Deschis inca !
Am sa las mai joc sh start.sh


#!/bin/sh

echo -e "\033[31m
Cate CH-uri Deschizi? \n
1 - (1) Channel\n
2 - (2) Channel\n
3 - (3) Channel\n
4 - (4) Channel\n
5 - (5) Auth\n

Metin2 StreetGame"

read anzahl
case $anzahl in

1*)
echo -e "\033[31m Baza de date porneste ..\033[0m"
cd edi/db && ./db &
sleep 2
echo -e "\033[31m Baza de date a pornit.\033[0m"
echo -e "\033[31m Login-Server, porneste...\033[0m"
cd edi/auth && ./auth &
sleep 2
echo -e "\033[31m Login-Server, pornit.[0m"
echo -e "\033[31m Porneste game99 Core 1...\033[0m"
cd ./game99/core1 && env LD_PRELOAD=/usr/home/game/system/costume_system.so ./game &
sleep 5
echo -e "\033[31m game99 Core 1 a pornit.\033[0m"
echo -e "\033[31m Porneste game99 Core 2...\033[0m"
cd ./game99/core2 && env LD_PRELOAD=/usr/home/game/system/costume_system.so ./game &
sleep 5
echo -e "\033[31m game99 Core 2 a pornit.\033[0m"
echo -e "\033[31m Porneste game99 Core 3...\033[0m"
cd ./game99/core3 && env LD_PRELOAD=/usr/home/game/system/costume_system.so ./game &
sleep 5
echo -e "\033[31m game99 Core 3 a pornit.\033[0m"
echo -e "\033[31m Porneste Channel 1 Core 1...\033[0m"
cd ./channel1/core1 && env LD_PRELOAD=/usr/home/game/system/costume_system.so ./game &
sleep 5
echo -e "\033[31m Channel 1 Core 1 a pornit.\033[0m"
echo -e "\033[31m Porneste Channel 1 Core 2...\033[0m"
cd ./channel1/core2 && env LD_PRELOAD=/usr/home/game/system/costume_system.so ./game &
sleep 5
echo -e "\033[31m Channel 1 Core 2 a pornit.\033[0m"
echo -e "\033[31m Porneste Channel 1 Core 3...\033[0m"
cd ./channel1/core3 && env LD_PRELOAD=/usr/home/game/system/costume_system.so ./game &
sleep 5
echo -e "\033[31m Channel 1 Core 3 ONLINE.\n
\n
1 CH Deschis !\033[0m"
cd ..
;;

2*)
echo -e "\033[31m Baza de date porneste...\033[0m"
cd edi/db && ./db &
sleep 2
echo -e "\033[31m Baza de date a pornit.\033[0m"
echo -e "\033[31m Porneste Channel 1 Core 1...\033[0m"
cd ./channel1/core1 && env LD_PRELOAD=/usr/home/game/system/costume_system.so ./game &
sleep 5
echo -e "\033[31m Channel 1 Core 1 a pornit.\033[0m"
echo -e "\033[31m Porneste Channel 1 Core 2...\033[0m"
cd ./channel1/core2 && env LD_PRELOAD=/usr/home/game/system/costume_system.so ./game &
sleep 5
echo -e "\033[31m Channel 1 Core 2 a pornit.\033[0m"
echo -e "\033[31m Porneste Channel 1 Core 3...\033[0m"
cd ./channel1/core3 && env LD_PRELOAD=/usr/home/game/system/costume_system.so ./game &
sleep 5
echo -e "\033[31m Channel 1 Core 3 a pornit.\033[0m"
echo -e "\033[31m Porneste Channel 2 Core 1...\033[0m"
cd ./channel2/core1 && env LD_PRELOAD=/usr/home/game/system/costume_system.so ./game &
sleep 5
echo -e "\033[31m Channel 2 Core 1 a pornit.\033[0m"
echo -e "\033[31m Porneste Channel 2 Core 2...\033[0m"
cd ./channel2/core2 && env LD_PRELOAD=/usr/home/game/system/costume_system.so ./game &
sleep 5
echo -e "\033[31m Channel 2 Core 2 a pornit.\033[0m"
echo -e "\033[31m Porneste Channel 2 Core 3...\033[0m"
cd ./channel2/core3 && env LD_PRELOAD=/usr/home/game/system/costume_system.so ./game &
sleep 5
echo -e "\033[31m Channel 2 Core 3 a pornit.\033[0m"
echo -e "\033[31m Porneste game99_1...\033[0m"
cd ./game99/core1 && env LD_PRELOAD=/usr/home/game/system/costume_system.so ./game &
sleep 5
echo -e "\033[31m game99 Core 1 a pornit.\033[0m"
echo -e "\033[31m Porneste game99_2...\033[0m"
cd ./game99/core2 && env LD_PRELOAD=/usr/home/game/system/costume_system.so ./game &
sleep 5
echo -e "\033[31m game99 Core 2 a pornit.\033[0m"
echo -e "\033[31m Porneste game99_3...\033[0m"
cd ./game99/core3 && env LD_PRELOAD=/usr/home/game/system/costume_system.so ./game &
sleep 5
echo -e "\033[31m game99 Core 3 a pornit.\033[0m"
echo -e "\033[31m Login-Server porneste...\033[0m"
cd ./edi/auth && ./auth &
sleep 2
echo -e "\033[31m 2 Channel si 3 Core ONLINE.\n
\n
2 CH-uri Deschise\033[0m"
cd ..
;;

4*)
echo -e "\033[31m Porneste baza de date...\033[0m"
cd edi/db && ./db &
sleep 2
echo -e "\033[31m Die Baza de date a pornit.\033[0m"
echo -e "\033[31m Porneste Channel 1 Core 1...\033[0m"
cd ./channel1/core1 && env LD_PRELOAD=/usr/home/game/system/costume_system.so ./game &
sleep 5
echo -e "\033[31m Channel 1 Core 1 a pornit.\033[0m"
echo -e "\033[31m Porneste Channel 1 Core 2...\033[0m"
cd ./channel1/core2 && env LD_PRELOAD=/usr/home/game/system/costume_system.so ./game &
sleep 5
echo -e "\033[31m Channel 1 Core 2 a pornit.\033[0m"
echo -e "\033[31m Porneste Channel 1 Core 3...\033[0m"
cd ./channel1/core3 && env LD_PRELOAD=/usr/home/game/system/costume_system.so ./game &
sleep 5
echo -e "\033[31m Channel 1 Core 3 a pornit.\033[0m"
echo -e "\033[31m Porneste Channel 2 Core 1...\033[0m"
cd ./channel2/core1 && env LD_PRELOAD=/usr/home/game/system/costume_system.so ./game &
sleep 5
echo -e "\033[31m Channel 2 Core 1 a pornit.\033[0m"
echo -e "\033[31m Porneste Channel 2 Core 2...\033[0m"
cd ./channel2/core2 && env LD_PRELOAD=/usr/home/game/system/costume_system.so ./game &
sleep 5
echo -e "\033[31m Channel 2 Core 2 a pornit.\033[0m"
echo -e "\033[31m Porneste Channel 2 Core 3...\033[0m"
cd ./channel2/core3 && env LD_PRELOAD=/usr/home/game/system/costume_system.so ./game &
sleep 5
echo -e "\033[31m Channel 2 Core 3 a pornit.\033[0m"
echo -e "\033[31m Porneste Channel 3 Core 1...\033[0m"
cd ./channel3/core1 && env LD_PRELOAD=/usr/home/game/system/costume_system.so ./game &
sleep 5
echo -e "\033[31m Channel 3 Core 1 a pornit.\033[0m"
echo -e "\033[31m Porneste Channel 3 Core 2...\033[0m"
cd ./channel3/core2 && env LD_PRELOAD=/usr/home/game/system/costume_system.so ./game &
sleep 5
echo -e "\033[31m Channel 3 Core 2 a pornit.\033[0m"
echo -e "\033[31m Porneste Channel 3 Core 3...\033[0m"
cd ./channel3/core3 && env LD_PRELOAD=/usr/home/game/system/costume_system.so ./game &
sleep 5
echo -e "\033[31m Channel 3 Core 3 a pornit.\033[0m"
echo -e "\033[31m Porneste Channel 4 Core 1...\033[0m"
cd ./channel4/core1 && env LD_PRELOAD=/usr/home/game/system/costume_system.so ./game &
sleep 5
echo -e "\033[31m Channel 4 Core 1 a pornit.\033[0m"
echo -e "\033[31m Porneste Channel 4 Core 2...\033[0m"
cd ./channel4/core2 && env LD_PRELOAD=/usr/home/game/system/costume_system.so ./game &
sleep 5
echo -e "\033[31m Channel 4 Core 2 a pornit.\033[0m"
echo -e "\033[31m Porneste Channel 4 Core 3...\033[0m"
cd ./channel4/core3 && env LD_PRELOAD=/usr/home/game/system/costume_system.so ./game &
sleep 5
echo -e "\033[31m Channel 4 Core 3 a pornit.\033[0m"
echo -e "\033[31m Porneste game99 Core 1...\033[0m"
cd ./game99/core1 && env LD_PRELOAD=/usr/home/game/system/costume_system.so ./game &
sleep 5
echo -e "\033[31m game99 Core 1 a pornit.\033[0m"
echo -e "\033[31m Porneste game99 Core 2...\033[0m"
cd ./game99/core2 && env LD_PRELOAD=/usr/home/game/system/costume_system.so ./game &
sleep 5
echo -e "\033[31m game99 Core 2 a pornit.\033[0m"
echo -e "\033[31m Porneste game99 Core 3...\033[0m"
cd ./game99/core3 && env LD_PRELOAD=/usr/home/game/system/costume_system.so ./game &
sleep 5
echo -e "\033[31m Channel 4 Core 3 a pornit.\033[0m"
echo -e "\033[31m Login-Server porneste...\033[0m"
cd ./edi/auth && ./auth &
sleep 2
echo -e "\033[31m 4 Channel 3 Core Online.\n
\n
Server Deschis !\033[0m"
cd ..
;;

5*)
echo -e "\033[31m Login-Server porneste...\033[0m"
cd ./edi/auth && ./auth &
sleep 2
echo -e "\033[31m 4 Channel 5 Core Online.\n
\n
Server Deschis !\033[0m"
cd ..
esac
Avatar utilizator
ITFilip
Nou Venit

Nou Venit
Mesaje: 8
Membru din: 04 Dec 2020, 18:41
Server: Imperialys
Regat: Shinsoo
Aprecieri: 2  
Mulţumiri: 0
Discord: Copiază ID
Medalii

Petrinel scrie: ↑07 Dec 2020, 08:57
ITFilip scrie: ↑07 Dec 2020, 08:11
Petrinel scrie: ↑07 Dec 2020, 00:09 lasa si tu stop.sh aici , poate nu ai locatiile bune la stop.sh
#/bin/sh
CHANNELS=$(cat ./daroo/channels.txt)
while [ $CHANNELS -ge 1 ]
do
echo -e "\033[31m Stoppe Channel "$CHANNELS" ...\033[0m"
cd "./channel"$CHANNELS && sh shut.sh
cd ..
CHANNELS=$(( $CHANNELS-1 ))
done
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 ..
dai in loc de sh stop.sh dai sh shut.sh
S-a rezolvat , multumesc tuturor !
Avatar utilizator
[Reizo]
Ţepar / Untrusted User

Ţepar / Untrusted User
Mesaje: 1301
Membru din: 22 Oct 2019, 15:44
Server: SAPPHIRE2
Regat: Chunjo
Aprecieri: 409  
Mulţumiri: 4322  
Discord: Copiază ID
 Contact:
Medalii

Topic marcat ca rezolvat si autorul a primit rezolvarea.

Arhivat.
Imagine
Afișează semnătura
Închis
Răspunsuri
1
Vizualizări
191
Răspunsuri
5
Vizualizări
243
Răspunsuri
7
Vizualizări
652
Răspunsuri
5
Vizualizări
445

Înapoi la “Probleme rezolvate”

  • Informaţie
  • Cine este conectat

    Utilizatori ce ce navighează pe acest forum: Niciun utilizator înregistrat și 30 vizitatori