mirror of
https://github.com/eliasstepanik/ark-ac-server-tools.git
synced 2026-01-24 07:28:27 +00:00
Merge pull request #329 from klightspeed/1.5-dev#restarttimer
Add --saveworld to stop and restart; fix useconfig
This commit is contained in:
commit
3d7f975037
@ -685,6 +685,9 @@ doStop() {
|
|||||||
if [ " $* " =~ " --warn " ]; then
|
if [ " $* " =~ " --warn " ]; then
|
||||||
doWarn "$1"
|
doWarn "$1"
|
||||||
fi
|
fi
|
||||||
|
if [ " $* " =~ " --saveworld " ]; then
|
||||||
|
doSaveWorld
|
||||||
|
fi
|
||||||
tput sc
|
tput sc
|
||||||
echo "Stopping server..."
|
echo "Stopping server..."
|
||||||
echo "`timestamp`: stopping" >> "$logdir/$arkmanagerLog"
|
echo "`timestamp`: stopping" >> "$logdir/$arkmanagerLog"
|
||||||
@ -1602,7 +1605,7 @@ while true; do
|
|||||||
doUninstallTools
|
doUninstallTools
|
||||||
;;
|
;;
|
||||||
useconfig)
|
useconfig)
|
||||||
useConfig "$2"
|
useConfig "${args[0]}"
|
||||||
shift
|
shift
|
||||||
;;
|
;;
|
||||||
--version)
|
--version)
|
||||||
@ -1648,6 +1651,10 @@ while true; do
|
|||||||
echo " --backup Takes a backup of the save files before updating"
|
echo " --backup Takes a backup of the save files before updating"
|
||||||
echo " --downloadonly Download the mod and/or server update without applying it"
|
echo " --downloadonly Download the mod and/or server update without applying it"
|
||||||
echo " Requires arkStagingDir be set to a staging directory on the same filesystem as the server"
|
echo " Requires arkStagingDir be set to a staging directory on the same filesystem as the server"
|
||||||
|
echo
|
||||||
|
echo "stop and restart commands take the below options:"
|
||||||
|
echo " --warn Warn players before shutting down the server"
|
||||||
|
echo " --saveworld Saves world before shutdown"
|
||||||
exit 1
|
exit 1
|
||||||
;;
|
;;
|
||||||
*)
|
*)
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user