Jump to content

Recommended Posts

Disclaimer: I haven't tested this, but technically it should work.

When you are defining a service, you can set a StandardInput file, which you can place whereever you want:

[Service]
ExecStart=~/DSTServer.sh
StandardInput=file:/home/user/DSTServer_Overworld_input

Then in the launch script, you add an input to pipe all lines from that file into the Launched server

tail -f /home/user/DSTServer_Overworld_input | /opt/DSTServer/bin64/dontstarve_dedicated_server_nullrenderer_x64 -console -conf_dir MyServer -cluster MyCluster -shard Master

Then when your server is running you can just paste the commands into the file, which in turn get piped into the service:

echo "c_shutdown()" > /home/user/DSTServer_Overworld_input

More info here: https://stackoverflow.com/questions/40732425/is-it-possible-to-pass-input-to-a-running-service-or-daemon

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
  • Create New...