![]() ![]() I'm assuming I'll probably need a cron job, and will probably need to set the server up as a service. Ideally, I'd like to have the server shut down at around 3am, update to the latest build, and then load the most recent autosave. We're using the develop branch both for up to date features and the new save format. I'm currently running a headless server on an Ubuntu VPS. It seems to be working as far as I can tell, the server seems fine, loads the most recent autosave when the service is restarted, and the repo for the nightly builds means no complicated workarounds trying to figure out the right download link. This is a quick and dirty guide, but hopefully it will help someone in the future. sudo chmod 755 update-openrct2 to make the cron script executable.This is the contents of the cron script #!/bin/sh Create a new script, sudo nano update-openrct2.Set the ExecStart= to run the shell script.Set up a service to start the server as described in the guide linked above.Openrct2-cli host ~/.config/OpenRCT2/save/autosave/$(ls -t1 ~/.config/OpenRCT2/save/autosave/ | head -n 1) -port 11753 This is the contents of my shell script !/usr/bin/env bash Create a shell script to start the server with the most recent autosave.Configure the server and users as described here, making sure to set autosave to 0 (option 0 in the dropdown, 1 minute intervals) in config.ini to prevent loss.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |