SunSunSun Posted February 4, 2015 Share Posted February 4, 2015 I dont want to install screen, cause the less services installed the better. In case of that i wrote myself a little script to run the server: OSDebian wheezy Path DST/home/dst/steam(steamcmd)/server(dst)dst@s17837415:~$ cat serverstart.sh#!/bin/bash#sh /home/dst/steam/update.shcd /home/dst/steam/server/binbash -c 'LD_LIBRARY_PATH=~/dst_lib ./dontstarve_dedicated_server_nullrenderer -conf_dir DoNotStarveTogether'First line is outcommented, because everytime i run the command most settings are going to be deleted (modsettings.lua, serversettings.lua).The following is a port of Team Fortress2:dst@s17837415:~$ cat steam/update.sh#!/bin/bash/home/dst/steam/steamcmd.sh +runscript /home/dst/steam/dst.txtdst@s17837415:~$ cat steam/dst.txt@ShutdownOnFailedCommand 1@NoPromptForPassword 1login anonymousforce_install_dir /home/dst/steam/server/app_update 343050 validatequitStarting the server with nohup absolutpath/to/serverstart.sh & (here:nohup /home/dst/serverstart.sh &) In addtion, i reboot my virtual privat server daily. Easy to restart dst via crontab:typecrontab -eadd into last line@reboot /home/dst/serverstart.shHope, some of you will help this. 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.