Archived

This topic is now archived and is closed to further replies.

Please be aware that the content of this thread may be outdated and no longer applicable.

tacgnol

How can I update the server on steamcmd ?

Recommended Posts

tehg    2

You could make a cron job that runs daily, stops the DST server, then runs the SteamCMD command to update:

 

steamcmd +login ID Password +force_install_dir path +app_update 343050 +exit

Share this post


Link to post
Share on other sites
tacgnol    0

so if I use the anonymous user, it would be something like this ... :

 

 

screen -X -S DST quit && steamcmd +login anonymous +force_install_dir /home/steam/steamapps/DST

+app_update 343050 +exit && cd /home/steam/steamapps/DST/bin/ && screen -S "DST Server" ./dontstarve_dedicated_server_nullrenderer

 

am I right ?

Share this post


Link to post
Share on other sites
raiser    4

Are you having problems updating it? I am getting an error "App 343050 state is 0x206 after update job" and the server is not updating at all.

Share this post


Link to post
Share on other sites
tacgnol    0

I did a small script that you can add to your cron job.

first create the file :

nano /home/steam/steamcmd/update.sh

then paste this using SHIFT+INSERT

#!/bin/shecho "Killing DST session(s) ..."screen -ls | grep DST | cut -d. -f1 | awk '{print $1}' | xargs killecho "Session killed, will now update DST..."cd /home/steam/steamcmd/ && ./steamcmd.sh +@ShutdownOnFailedCommand 1 +@NoPromptForPassword 1 +login anonymous +force_install_dir /home/steam/steamapps/DST +app_update 343050 validate +quitecho "Update completed, will now start the server..."cd /home/steam/steamapps/DST/bin/ && screen -dmS "DST Server" ./dontstarve_dedicated_server_nullrenderer -threaded_physics -threaded_renderecho "Server successfully started!" 
then CTRL-O + CTRL+X to save & quit.
 
 
 
I have set the script to run at midnight everyday... if someone have a better idea to update the game as soon an update is released, please share :)

Share this post


Link to post
Share on other sites
KogaBee    0

Tacnogol replace that mess of cut and grep with

 

screen -ls | awk 'BEGIN{RS="."}/dontstarve/{print $1}' | xargs kill

Share this post


Link to post
Share on other sites