The purpose of this script is to give Nebulous: Fleet Command dedicated server owners the ability to automatically restart, patch and stop the Server in such a way that allows an in-progress game to end without impacting the users on the server. As of now the features include:
- Stateful restart/stop/start of the game service to allow an in-progress game to be completed prior to reboot.
- Automatic patching of the Nebulous Server Binaries by using steamcmd (Installed Separately by the User)
Prerequisites:
- The following Linux packages are required, please install these for the script to work. The following example is for Debian 11 and may change based on your Operating System: apt-get -y install jq curl
- Nebulous: Fleet Command is running as a service.
- Your server runs systemd. (Service commands start with systemctl)
- You have a basic understanding of how to run cronjobs.
Installation Steps:
- Clone Repository to location of your choice.
- Edit the config.txt file and input all variables.
- Run the script manually or have it execute automatically as a cronjob.
Update the config.txt file with the all variables and paths as needed.
bash N-FC_ASRU.sh [ stop / restart / forcepatch / help] [scheduled / patching / admin]
- "stop" flag will gracefully stop the Nebulous Server at the end of a game, if one is in progress.
- "restart" flag will gracefully restart the Nebulous Server at the end of a game, if one is in progress.
- "forcepatch" flag will immediately shutdown the nebulous server and start the patch process.
- "help" flag will print information on how to execute the script.
Optionally, you can additionally set what the printed-message will be to users. It will default to a "patching" printout if none is provided.
- "scheduled" flag will use the RebootReason_Scheduled line listed in config.txt
- "patching" flag will use the RebootReason_Patching line listed in config.txt
- "admin" flag will use the RebootReason_Admin line listed in config.txt
If you encounter a script issue please open a PR.
No Current Additions are planned at this time.
This Software is licensed under the Apache License 2.0