Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- echo -e "\033[35m
- Was moechtest du tun? \n
- 1 - (1) Server/Channel starten\n
- 2 - (2) Server/Channel schliessen\n
- 3 - (3) Logs loeschen\n
- 4 - (4) Quests reloaden\n
- 5 - (5) Backups erstellen\n
- 6 - (6) Nichts
- Panel by Fliege"
- read anzahl
- case $anzahl in
- 1*)
- echo -e "\033[32m Startet die Datenbank ..\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 Der Loginserver wurde gestartet.\n
- \n
- Serverstarter by Fliege\033[0m"
- cd ..
- ;;
- 2*)
- #!/bin/sh
- killall -1 sh db auth game
- 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 /usr/home/game/quest && python make.py
- cd ..
- ;;
- 5*)
- find /usr/home/game -name "syserr" -type f -delete
- find /usr/home/game -name "syslog" -type f -delete
- find /usr/home/game -name "DEV_LOG" -type f -delete
- find /usr/home/game -name "autorun.log" -type f -delete
- find /usr/home/game -name "autorun.log" -type f -delete
- find /usr/home/game -name "mob_count" -type f -delete
- find /usr/home/game -name "AUTH_COUNT.log" -type f -delete
- find /usr/home/game -name "memory_usage_info.txt" -type f -delete
- find /usr/home/game -name "startlog" -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 "ProfileLog" -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
- find /usr/home/game -name "clear.sh" -type f -delete
- echo -e "\033[31m Server wurde bereinigt!\033[0m"
- DATE=$(date +%d-%m-%y-%T)
- cd /usr/home
- tar czvf game_$DATE.tar.gz game
- mv game_$DATE.tar.gz /usr/home/backups/
- cd /var/db
- tar czvf mysql_$DATE.tar.gz mysql
- mv mysql_$DATE.tar.gz /usr/home/backups/
- echo -e "\033[31m Serverbackups wurden erstellt!\033[0m"
- ;;
- 6*)
- cd ..
- ;;
- esac
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement