mirror of
https://github.com/MinecraftServerControl/mscs.git
synced 2024-11-15 06:48:16 -07:00
The Screen will close automatically when the Java process dies.
This commit is contained in:
parent
c9d3d1544e
commit
fedd204451
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user