tacgnol Posted January 28, 2015 Share Posted January 28, 2015 How can the server automaticly update itself, or check for update once a day in steamcmd on ubuntu server ? Link to comment Share on other sites More sharing options...
tehg Posted January 28, 2015 Share Posted January 28, 2015 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 Link to comment Share on other sites More sharing options...
tacgnol Posted January 29, 2015 Author Share Posted January 29, 2015 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 ? Link to comment Share on other sites More sharing options...
raiser Posted January 29, 2015 Share Posted January 29, 2015 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. Link to comment Share on other sites More sharing options...
tacgnol Posted February 5, 2015 Author Share Posted February 5, 2015 the wiki has been updated with the proper way to update the server : http://dont-starve-game.wikia.com/wiki/Don%E2%80%99t_Starve_Together_Dedicated_Servers#Updating Link to comment Share on other sites More sharing options...
tacgnol Posted February 28, 2015 Author Share Posted February 28, 2015 I did a small script that you can add to your cron job.first create the file :nano /home/steam/steamcmd/update.shthen 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 Link to comment Share on other sites More sharing options...
KogaBee Posted March 1, 2015 Share Posted March 1, 2015 Tacnogol replace that mess of cut and grep with screen -ls | awk 'BEGIN{RS="."}/dontstarve/{print $1}' | xargs kill Link to comment Share on other sites More sharing options...
Recommended Posts
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.