![]() Systemd will now automatically start the server on boot and will gracefully shutdown the server on shutdown. Then reload systemd and enable and start the service: service file in the /etc/systemd/system directory, for example rvice:ĮxecStart=/bin/screen -dmS unturned-server pathtounturned/ServerHelper.sh -ThreadedConsole InternetServer/MyServerĮxecStop=/bin/bash -c 'screen -S unturned-server -p 0 -X stuff "save^Mshutdown^M" tail -pid=$MAINPID -f /dev/null'Ĭhange pathtounturned/ServerHelper.sh to the path where the server is installed, InternetServer/MyServer to the name of the server, and User=unturned to the user that will run the server. More Computing Power for Less Award-Winning Support from an Actual Person - not a Bot 8 Regions, 11 Locations 99.996 Uptime Over the Last 12 Months. Changing the MyServer ServerID in the launch arguments can be done to run multiple servers at once, or to keep savedata separate.įor an example script, open the built-in ExampleServer.sh file.Ī systemd service can be created to automatically start and stop the server.Ĭreate a. This is where all savedata and configuration files are kept. ![]() Running it will have created a "MyServer" directory in U3DS\Servers. ![]() For a LAN server, use LanServer instead.Ĭleanly shutdown the server once it finishes loading, with shutdown. ServerHelper.sh InternetServer/MyServer. ![]() Please review the supported language list below before purchasing Recent Events
0 Comments
Leave a Reply. |