mirror of
https://github.com/eliasstepanik/ark-ac-server-tools.git
synced 2026-01-12 02:48:27 +00:00
User SIGINT instead of SIGKILL to stop server
This commit is contained in:
parent
93d9883ced
commit
2110bc7fa6
@ -328,7 +328,7 @@ doStop() {
|
||||
echo "Stopping server..."
|
||||
# kill the server with the PID
|
||||
PID=`ps -ef | grep "$arkserverroot/$arkserverexec" | grep -v grep | awk '{print $2}'`
|
||||
kill -9 $PID
|
||||
kill -INT $PID
|
||||
|
||||
tput rc; tput ed;
|
||||
echo "The server has been stopped"
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user