Jump to content

No screen requiered to launch dst-dedicated


Recommended Posts

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:

 

OS

Debian 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.txt
dst@s17837415:~$ cat steam/dst.txt@ShutdownOnFailedCommand 1@NoPromptForPassword 1login anonymousforce_install_dir /home/dst/steam/server/app_update 343050 validatequit

Starting 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:

type

crontab -e

add into last line

@reboot /home/dst/serverstart.sh

Hope, some of you will help this.

 

Link to comment
Share on other sites

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.

×
  • Create New...