stgo Posted July 10, 2025 Share Posted July 10, 2025 Hi, I am running the dedicated server as a systemd service so that it starts with the machine. In that case, how does the administrator connect to the server to send command ? (Or to get status) Is there a known way ? Link to comment https://forums.kleientertainment.com/forums/topic/166923-dedicated-server-cli-when-running-as-service/ Share on other sites More sharing options...
Daniel86268 Posted July 12, 2025 Share Posted July 12, 2025 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 Link to comment https://forums.kleientertainment.com/forums/topic/166923-dedicated-server-cli-when-running-as-service/#findComment-1826592 Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now