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




