It has been suggested that this article or section be merged with Dedicated servers.
|
- Reason: Could be incorporated into § How do I update the Dedicated Server?
- Please discuss this on the Discussion page.
This page describes how to automate dedicated server updates.
Automating Updates[]
Linux[]
crontab[]
If you configured your dedicated server as a systemd service to run with the +app_update
flag as detailed here, then you simply need to restart the service for it to be updated. To have the service periodically restarted we can add a crontab entry.
On the commandline run:
sudo crontab -e
sudo rm -rf /etc/systemd/system/*.automount
Now add a new entry at the bottom of the file:
30 3 * * * /bin/systemctl try-restart satisfactory
This will restart your Satisfactory dedicated server daily at 3:30 AM, updating the server in the process. If you want to change the time or frequency that it restarts, refer to the crontab syntax.
Windows[]
NSSM[]
You can use the Non-Sucking Service Manager to automate the update process
Batch file[]
First, you need to make a batch file to update FactoryServer.exe. Open a text editor of your choice, and paste the below code:
Since Satisfactory has now been updated to 1.0, it is no longer early access, and experimental has been merged into the public release.
To automatically check for an update on a time delay:
"C:\GameServers\nssm.exe" stop SatisfactoryServerService
"C:\Program Files (x86)\Steam\steamcmd.exe" +force_install_dir "C:\GameServers\SatisfactoryServer" +login anonymous +app_update 1690800 validate +quit
"C:\GameServers\nssm.exe" start SatisfactoryServerService
Where the first and last path is to the folder with nssm.exe, the second path is to SteamCMD, the third path is to the folder with FactoryServer.exe.
To manually check for an update when you manually start the server:
"C:\Program Files (x86)\Steam\steamcmd.exe" +force_install_dir "C:\GameServers\SatisfactoryServer" +login anonymous +app_update 1690800 validate +quit
"C:\GameServers\nssm.exe" start SatisfactoryServerService
Where the first path is to SteamCMD, the second path is to the folder with FactoryServer.exe, and the third path is to the folder with nssm.exe.
Now press Ctrl+S, and save the file to the directory with FactoryServer.exe (in our case, C:\GameServers\SatisfactoryServer) as "update.bat"
The batch file will ensure that your server checks for an update on a set interval or manually, depending on which batch script you chose, then starts to apply the update.
Automating[]
Once you've downloaded and installed NSSM, navigate to the directory containing nssm.exe and run the below command:
nssm.exe install SatisfactoryServerUpdate
This will pull up a GUI for configuration. Set the "Path" to the location of update.bat. Then, go to "Details", change "Startup Type" to "Automatic". Leaving the settings like this will require manual stopping of the server to apply updates.
If you'd like to make the update checking automatic based on a time interval where you don't have to manually turn the server off to apply updates, do the following steps. If you'd like to manually restart the server and apply updates then, you can skip this step.
Go to "Exit" and type a delay in milliseconds for how often you'd like to check for updates (bi-daily checks = 43200000 ms, daily checks = 86400000 ms, weekly checks = 604800000 ms), and then click "Install service".
If you do not have a service created to run your Dedicated Server, head here to set it up. If you do have it set up as a service already with NSSM, you can continue ahead and run the following command:
nssm.exe edit SatisfactoryServerService
Now, Go to "Details" and change "Startup Type" to "Manual". When finished, click "Edit Service".
Finally, run this command:
nssm.exe start SatisfactoryServerUpdate
This will start the update process, and then start the server once finished.
Other useful nssm
commands:
nssm.exe status SatisfactoryServerUpdate # Checks the status of the Service
|