mirror of
https://github.com/eliasstepanik/ark-ac-server-tools.git
synced 2026-01-24 15:38:26 +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..."
|
echo "Stopping server..."
|
||||||
# kill the server with the PID
|
# kill the server with the PID
|
||||||
PID=`ps -ef | grep "$arkserverroot/$arkserverexec" | grep -v grep | awk '{print $2}'`
|
PID=`ps -ef | grep "$arkserverroot/$arkserverexec" | grep -v grep | awk '{print $2}'`
|
||||||
kill -9 $PID
|
kill -INT $PID
|
||||||
|
|
||||||
tput rc; tput ed;
|
tput rc; tput ed;
|
||||||
echo "The server has been stopped"
|
echo "The server has been stopped"
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user