Cerere start.sh

Închis
Avatar utilizator
[Skyzo]
Nivel 2

Nivel 2
Mesaje: 288
Membru din: 15 Noi 2017, 19:07
Server: Metin2......
Regat: Chunjo
Aprecieri: 65  
Mulţumiri: 167  
  Rezolvări prob.: 1
Medalii

Salut J4M!Asi dori si eu ca start.sh sa porneasca si ch2,ch3 si ch4 nu doar ch1
start.sh server
echo -e "\033[35m  
Ce vrei sa faci? \n 
1 -	(1)	Porniti serverul / canalul\n 
2 -	(2)	Inchideti serverul / canalul\n
3 -	(3)	Stergeti log-urile\n
4 -	(4)	Nimic

Panel by Nicu"

read anzahl
case $anzahl in 

1*)
		echo -e "\033[32m Porneste baza de date ..\033[33m"
		cd /usr/home/game/Datenbank && ./db &
		sleep 2
		cd /usr/home/game/Channel1/Reiche && ./auto.sh &
		sleep 2
		cd /usr/home/game/Channel1/Kern1 && ./auto.sh &
		sleep 2
		cd /usr/home/game/Channel1/Kern2 && ./auto.sh &
		sleep 2
		cd /usr/home/game/Channel1/Kern3 && ./auto.sh &
		sleep 2
		cd /usr/home/game/Neutraler_Channel && ./auto.sh &
		sleep 2
		cd /usr/home/game/Loginserver  && ./auto.sh &
		sleep 2
		echo -e "\033[32m Pornesc Login.\n
		\n
		Server de pornire by Nicu\033[0m"
		cd ..		
;;

2*)
#!/bin/sh
killall -9 db game auth sh
cd ..
;;

3*)
#!/bin/sh
echo "Loesche Logs..."
find /usr/home/game -name "syserr" -type f -delete
find /usr/home/game -name "syslog" -type f -delete
find /usr/home/game -name "mob_data.txt" -type f -delete
find /usr/home/game -name "p2p_packet_info.txt" -type f -delete
find /usr/home/game -name "packet_info.txt" -type f -delete
find /usr/home/game -name "udp_packet_info.txt" -type f -delete
find /usr/home/game -name "pid" -type f -delete
find /usr/home/game -name "PTS" -type f -delete
find /usr/home/game -name "ver.txt" -type f -delete
find /usr/home/game -name "VERSION.txt" -type f -delete
find /usr/home/game -name "mob_count" -type f -delete
find /usr/home/game -name "game.core" -type f -delete
find /usr/home/game -name "db.core" -type f -delete
find /usr/home/game -name "sh.core" -type f -delete
find /usr/home/game -name "stdout" -type f -delete
cd ..
echo "Geloescht!"
;;

4*)
cd ..
;;
esac
„Un intelectual rezolvă problemele. Un geniu le evită.” — Albert Einstein
Afișează semnătura
Avatar utilizator
Cypul
Nivel 2

Nivel 2
Mesaje: 173
Membru din: 12 Iul 2018, 10:31
Regat: Jinno
Aprecieri: 211  
Mulţumiri: 130  
 Contact:
Medalii

ncearca asta
ABBC3_SPOILER_SHOW
Avatar utilizator
[Skyzo]
Nivel 2

Nivel 2
Mesaje: 288
Membru din: 15 Noi 2017, 19:07
Server: Metin2......
Regat: Chunjo
Aprecieri: 65  
Mulţumiri: 167  
  Rezolvări prob.: 1
Medalii

Imi apare asta cand aleg sa pornesc CH-urile
: not found
Ce vrei sa faci?

1 -     (1)     Porniti Canalul 1 / canalul

2 -     (2)     Porniti Canalul 1 si 2 / canalul

3 -     (3)     Porniti Canalul 1,2 si 3 / canalul

4 -     (4)     Porniti Canalul 1,2,3 si 4 / canalul

5 -     (5)     Inchideti serverul / canalul

6 -     (6)     Stergeti log-urile

7 -     (7)     Nimic

Panel by Nicu
: not found
2
: bad variable name
start.sh: 15: Syntax error: word unexpected (expecting ")")
„Un intelectual rezolvă problemele. Un geniu le evită.” — Albert Einstein
Afișează semnătura
Avatar utilizator
Cypul
Nivel 2

Nivel 2
Mesaje: 173
Membru din: 12 Iul 2018, 10:31
Regat: Jinno
Aprecieri: 211  
Mulţumiri: 130  
 Contact:
Medalii

Incearca asa...dar intai de toate ai facut canalele cu symlink pentru a avea ce deschide?
ABBC3_SPOILER_SHOW
Avatar utilizator
[Skyzo]
Nivel 2

Nivel 2
Mesaje: 288
Membru din: 15 Noi 2017, 19:07
Server: Metin2......
Regat: Chunjo
Aprecieri: 65  
Mulţumiri: 167  
  Rezolvări prob.: 1
Medalii

Am incercat si eu sa fac un start.sh
echo -e "\033[35m  
Ce vrei sa faci? \n 
1 -	(1)	Porniti Canalul 1 / canalul\n
2 -	(2)	Porniti Canalul 1 si 2 / canalul\n 
3 -	(3)	Inchideti serverul / canalul\n
4 -	(4)	Stergeti log-urile\n
5 -	(5)	Nimic

Panel by Nicu"

read anzahl
case $anzahl in 

1*)
		echo -e "\033[32m Porneste baza de date ..\033[33m"
		cd /usr/home/game/Datenbank && ./db &
		sleep 2
		cd /usr/home/game/Channel1/Reiche && ./auto.sh &
		sleep 2
		cd /usr/home/game/Channel1/Kern1 && ./auto.sh &
		sleep 2
		cd /usr/home/game/Channel1/Kern2 && ./auto.sh &
		sleep 2
		cd /usr/home/game/Channel1/Kern3 && ./auto.sh &
		sleep 2
		cd /usr/home/game/Neutraler_Channel && ./auto.sh &
		sleep 2
		cd /usr/home/game/Loginserver  && ./auto.sh &
		sleep 2
		echo -e "\033[32m Pornesc Login.\n
		\n
		Server de pornire by Nicu\033[0m"
		cd ..		
;;

2*)
		echo -e "\033[32m Porneste baza de date ..\033[33m"
		cd /usr/home/game/Datenbank && ./db &
		sleep 2
		cd /usr/home/game/Loginserver && ./auto.sh &
		sleep 2
		cd /usr/home/game/Channel1/Reiche && ./auto.sh &
		sleep 2
		cd /usr/home/game/Channel1/Kern1 && ./auto.sh &
		sleep 2
		cd /usr/home/game/Channel1/Kern2 && ./auto.sh &
		sleep 2
		cd /usr/home/game/Channel1/Kern3 && ./auto.sh &
		sleep 2
		cd /usr/home/game/Channel2/Reiche && ./auto.sh &
		sleep 2
		cd /usr/home/game/Channel2/Kern1 && ./auto.sh &
		sleep 2
		cd /usr/home/game/Channel2/Kern2 && ./auto.sh &
		sleep 2
		cd /usr/home/game/Channel2/Kern3 && ./auto.sh &
		sleep 2
		cd /usr/home/game/Neutraler_Channel && ./auto.sh &
		sleep 2
		echo -e "\033[32m Pornesc Login.\n
		\n
		Server de pornire by Nicu\033[0m"
		cd ..	
;;

3*)
#!/bin/sh
killall -9 db game auth sh
cd ..
;;

4*)
#!/bin/sh
echo "Loesche Logs..."
find /usr/home/game -name "syserr" -type f -delete
find /usr/home/game -name "syslog" -type f -delete
find /usr/home/game -name "mob_data.txt" -type f -delete
find /usr/home/game -name "p2p_packet_info.txt" -type f -delete
find /usr/home/game -name "packet_info.txt" -type f -delete
find /usr/home/game -name "udp_packet_info.txt" -type f -delete
find /usr/home/game -name "pid" -type f -delete
find /usr/home/game -name "PTS" -type f -delete
find /usr/home/game -name "ver.txt" -type f -delete
find /usr/home/game -name "VERSION.txt" -type f -delete
find /usr/home/game -name "mob_count" -type f -delete
find /usr/home/game -name "game.core" -type f -delete
find /usr/home/game -name "db.core" -type f -delete
find /usr/home/game -name "sh.core" -type f -delete
find /usr/home/game -name "stdout" -type f -delete
cd ..
echo "Geloescht!"
;;

5*)
cd ..
;;
esac
Merge sa pornesc ch1 dar cand incerc sa pornesc si ch2 imi da conection refused.
Am copiat channel1 si l-am redenumit in channel2 si am schimbat HOSTNAME: channel1 in channel2
CHANNEL: 1 in 2 si PORT: 13001 in 13101 si in auto.sh am modificat in SERVICE='Kern1_Ch2' dar stituatia ma depaseste si nu stiu ce trebuie sa fac ca sa mearga.Varog mult de tot! :ympray: :ympray: :((
„Un intelectual rezolvă problemele. Un geniu le evită.” — Albert Einstein
Afișează semnătura
Avatar utilizator
[Brahma]
Veteran

Veteran
Mesaje: 1526
Membru din: 16 Mai 2017, 22:18
Aprecieri: 0
Mulţumiri: 2309  
Medalii

ABBC3_SPOILER_SHOW
ABBC3_SPOILER_SHOW
Imagine
Afișează semnătura
Avatar utilizator
Good.
Nivel 1

Nivel 1
Mesaje: 99
Membru din: 03 Feb 2015, 16:38
Server: Calliope2
Regat: Jinno
Aprecieri: 14  
Mulţumiri: 7  
 Contact:
Medalii

Autorul nu prezintă interes asupra acestui subiect. (3 zile)
Mutat în Arhivă!
Închis
Răspunsuri
2
Vizualizări
304
Răspunsuri
4
Vizualizări
462
Răspunsuri
2
Vizualizări
653

Înapoi la “Arhivă”

  • Informaţie
  • Cine este conectat

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