The Screen will close automatically when the Java process dies.

This commit is contained in:
Jason M. Wood 2013-12-04 16:16:15 -07:00
parent c9d3d1544e
commit fedd204451

View File

@ -836,10 +836,8 @@ forceStop() {
# Try to stop the server cleanly first.
stop "$1"
sleep 5
# Kill the process ids of the world server.
kill -9 $(getScreenPID "$1") $(getJavaPID "$1") > /dev/null 2>&1
# Cleanup the dead screen.
execute "$SCREEN -wipe" $USER_NAME > /dev/null 2>&1
# Kill the process id of the world server.
kill -9 $(getJavaPID "$1") > /dev/null 2>&1
# Remove the lock file on Redhat and derivatives if it is still
# around.
rm -f /var/lock/subsys/minecraft_server