Und zwar habe ich ein kleines Item-Verlust problem auf meinem Server da mein Starterscript den server direkt killt anstatt ihn vorher zu stoppen , vielleicht ist einer so nett und editiert mir das ganz kurz um das er bevor er den server killt den server stopt damit kein item-verlust entsteht. wäre sehr lieb von euch.
Code:
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) Nichts " 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/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/Channel1/Reiche && ./auto.sh & sleep 2 cd /usr/home/game/Neutraler_Channel && ./auto.sh & sleep cd /usr/home/game/Loginserver && ./auto.sh & sleep 2 echo -e "\033[32m Der Loginserver wurde gestartet.\n \n Serverstarter by FDM\033[33m" cd .. ;; 2*) killall -9 db game auth sh echo -e "\033[31m Der Server wurde heruntergefahren.\033[0m" cd .. ;; 3*) #!/bin/sh echo "Loesche Logs..." cd /usr/home/game/Datenbank rm -f syserr && rm -f syslog rm -rf log/* rm -f db.core rm -f sh.core cd .. cd /usr/home/game/Loginserver rm -f syserr && rm -f syslog rm -rf log/* rm -f game.core rm -f sh.core rm -f PTS cd .. cd /usr/home/game/Channel1/Kern1 rm -f syserr && rm -f syslog rm -rf log/* rm -f game.core rm -f sh.core rm -f PTS cd .. cd /usr/home/game/Channel1/Kern2 rm -f syserr && rm -f syslog rm -rf log/* rm -f game.core rm -f sh.core rm -f PTS cd .. cd /usr/home/game/Channel1/Kern3 rm -f syserr && rm -f syslog rm -rf log/* rm -f game.core rm -f sh.core rm -f PTS cd .. cd /usr/home/game/Channel1/Reiche rm -f syserr && rm -f syslog rm -rf log/* rm -f game.core rm -f sh.core rm -f PTS cd .. cd /usr/home/game/Channel2/Kern1 rm -f syserr && rm -f syslog rm -rf log/* rm -f game.core rm -f sh.core rm -f PTS cd .. cd /usr/home/game/Channel2/Kern2 rm -f syserr && rm -f syslog rm -rf log/* rm -f game.core rm -f sh.core rm -f PTS cd .. cd /usr/home/game/Channel2/Kern3 rm -f syserr && rm -f syslog rm -rf log/* rm -f game.core rm -f sh.core rm -f PTS cd .. cd /usr/home/game/Channel2/Reiche rm -f syserr && rm -f syslog rm -rf log/* rm -f game.core rm -f sh.core rm -f PTS cd .. cd /usr/home/game/Channel3/Kern1 rm -f syserr && rm -f syslog rm -rf log/* rm -f game.core rm -f sh.core rm -f PTS cd .. cd /usr/home/game/Channel3/Kern2 rm -f syserr && rm -f syslog rm -rf log/* rm -f game.core rm -f sh.core rm -f PTS cd .. cd /usr/home/game/Channel3/Kern3 rm -f syserr && rm -f syslog rm -rf log/* rm -f game.core rm -f sh.core rm -f PTS cd .. cd /usr/home/game/Channel3/Reiche rm -f syserr && rm -f syslog rm -rf log/* rm -f game.core rm -f sh.core rm -f PTS cd .. cd /usr/home/game/Channel4/Kern1 rm -f syserr && rm -f syslog rm -rf log/* rm -f game.core rm -f sh.core rm -f PTS cd .. cd /usr/home/game/Channel4/Kern2 rm -f syserr && rm -f syslog rm -rf log/* rm -f game.core rm -f sh.core rm -f PTS cd .. cd /usr/home/game/Channel4/Kern3 rm -f syserr && rm -f syslog rm -rf log/* rm -f game.core rm -f sh.core rm -f PTS cd .. cd /usr/home/game/Channel4/Reiche rm -f syserr && rm -f syslog rm -rf log/* rm -f game.core rm -f sh.core rm -f PTS cd .. cd /usr/home/game/Neutraler_Channel rm -f syserr && rm -f syslog rm -rf log/* rm -f game.core rm -f sh.core rm -f PTS cd .. echo "Geloescht!" ;; 4*) cd /usr/home/game/quest && python make.py cd .. ;; 5*) cd .. ;; esac