Advertisement
Guest User

Untitled

a guest
Oct 15th, 2018
76
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 3.53 KB | None | 0 0
  1. echo -e "\033[35m
  2. Was moechtest du tun? \n
  3. 1 - (1) Server/Channel starten\n
  4. 2 - (2) Server/Channel schliessen\n
  5. 3 - (3) Logs loeschen\n
  6. 4 - (4) Quests reloaden\n
  7. 5 - (5) Backups erstellen\n
  8. 6 - (6) Nichts
  9.  
  10. Panel by Fliege"
  11.  
  12. read anzahl
  13. case $anzahl in
  14.  
  15. 1*)
  16. echo -e "\033[32m Startet die Datenbank ..\033[33m"
  17. cd /usr/home/game/Datenbank && ./db &
  18. sleep 2
  19. cd /usr/home/game/Channel1/Reiche && ./auto.sh &
  20. sleep 2
  21. cd /usr/home/game/Channel1/Kern1 && ./auto.sh &
  22. sleep 2
  23. cd /usr/home/game/Channel1/Kern2 && ./auto.sh &
  24. sleep 2
  25. cd /usr/home/game/Channel1/Kern3 && ./auto.sh &
  26. sleep 2
  27. cd /usr/home/game/Neutraler_Channel && ./auto.sh &
  28. sleep 2
  29. cd /usr/home/game/Loginserver && ./auto.sh &
  30. sleep 2
  31. echo -e "\033[32m Der Loginserver wurde gestartet.\n
  32. \n
  33. Serverstarter by Fliege\033[0m"
  34. cd ..
  35. ;;
  36.  
  37. 2*)
  38. #!/bin/sh
  39. killall -1 sh db auth game
  40. cd ..
  41. ;;
  42.  
  43. 3*)
  44. #!/bin/sh
  45. echo "Loesche Logs..."
  46. find /usr/home/game -name "syserr" -type f -delete
  47. find /usr/home/game -name "syslog" -type f -delete
  48. find /usr/home/game -name "mob_data.txt" -type f -delete
  49. find /usr/home/game -name "p2p_packet_info.txt" -type f -delete
  50. find /usr/home/game -name "packet_info.txt" -type f -delete
  51. find /usr/home/game -name "udp_packet_info.txt" -type f -delete
  52. find /usr/home/game -name "pid" -type f -delete
  53. find /usr/home/game -name "PTS" -type f -delete
  54. find /usr/home/game -name "ver.txt" -type f -delete
  55. find /usr/home/game -name "VERSION.txt" -type f -delete
  56. find /usr/home/game -name "mob_count" -type f -delete
  57. find /usr/home/game -name "game.core" -type f -delete
  58. find /usr/home/game -name "db.core" -type f -delete
  59. find /usr/home/game -name "sh.core" -type f -delete
  60. find /usr/home/game -name "stdout" -type f -delete
  61. cd ..
  62. echo "Geloescht!"
  63. ;;
  64.  
  65. 4*)
  66. cd /usr/home/game/quest && python make.py
  67. cd ..
  68. ;;
  69.  
  70. 5*)
  71. find /usr/home/game -name "syserr" -type f -delete
  72. find /usr/home/game -name "syslog" -type f -delete
  73. find /usr/home/game -name "DEV_LOG" -type f -delete
  74. find /usr/home/game -name "autorun.log" -type f -delete
  75. find /usr/home/game -name "autorun.log" -type f -delete
  76. find /usr/home/game -name "mob_count" -type f -delete
  77. find /usr/home/game -name "AUTH_COUNT.log" -type f -delete
  78. find /usr/home/game -name "memory_usage_info.txt" -type f -delete
  79. find /usr/home/game -name "startlog" -type f -delete
  80. find /usr/home/game -name "mob_data.txt" -type f -delete
  81. find /usr/home/game -name "p2p_packet_info.txt" -type f -delete
  82. find /usr/home/game -name "ProfileLog" -type f -delete
  83. find /usr/home/game -name "packet_info.txt" -type f -delete
  84. find /usr/home/game -name "udp_packet_info.txt" -type f -delete
  85. find /usr/home/game -name "pid" -type f -delete
  86. find /usr/home/game -name "PTS" -type f -delete
  87. find /usr/home/game -name "ver.txt" -type f -delete
  88. find /usr/home/game -name "VERSION.txt" -type f -delete
  89. find /usr/home/game -name "mob_count" -type f -delete
  90. find /usr/home/game -name "game.core" -type f -delete
  91. find /usr/home/game -name "db.core" -type f -delete
  92. find /usr/home/game -name "sh.core" -type f -delete
  93. find /usr/home/game -name "stdout" -type f -delete
  94. find /usr/home/game -name "clear.sh" -type f -delete
  95.  
  96. echo -e "\033[31m Server wurde bereinigt!\033[0m"
  97.  
  98. DATE=$(date +%d-%m-%y-%T)
  99. cd /usr/home
  100. tar czvf game_$DATE.tar.gz game
  101. mv game_$DATE.tar.gz /usr/home/backups/
  102. cd /var/db
  103. tar czvf mysql_$DATE.tar.gz mysql
  104. mv mysql_$DATE.tar.gz /usr/home/backups/
  105. echo -e "\033[31m Serverbackups wurden erstellt!\033[0m"
  106. ;;
  107.  
  108. 6*)
  109. cd ..
  110. ;;
  111. esac
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement