Setup Auto Restart
This guide helps you find the credentials and values needed for setting up the Auto Restart feature correctly, along with tips for proper configuration.
Steps to Setup Properly - Admin Side
Navigate to your Nests page of your Admin section.
Go to the nest where the egg is located at and open it.
Select the Variables page.
Set the default value for Auto Restart - Check Interval to the desired time frequency for server updates. A longer interval is recommended to avoid rate limiting.
Set the default value for Auto Restart - API URL to your Pterodactyl panel URL. Don't include any path at the end. Example: https://panel.your-domain.com
Configure any Auto Restart default setting according to your preferences, as these will apply to all new servers or servers where you change the egg to this.
You can also configure which settings are visible on client side.
Avoid setting a default Auto Restart - User API key value if you're hosting servers for others. This can be extracted! Each user should create their own API token.
Steps to Setup Properly - Client Side
Access the server where you wish to activate the feature.
Go to the Startup page.
Activate the AUTO RESTART - ENABLED setting.
To add your API key, navigate to the AUTO RESTART - USER API KEY section. You can generate this key by clicking your profile picture in the top right corner, selecting API Credentials, or visiting https://panel.your-domain.com/account/api. Create a new key and copy it immediately after generation, as it is only visible once. The key is typically 48 characters long.
Define a JSON structure containing commands and their corresponding timings to execute during the countdown to a restart to AUTO RESTART - COMMANDS. These commands can be used to notify players about the upcoming restart or to perform any other actions. Follow the default format, where the key represents the remaining seconds before the restart, and the value specifies the command to execute.
Set the AUTO RESTART - COUNTDOWN INTERVAL to the number of seconds to wait before restarting the server upon detecting a new version. It's recommended to set this value to a few minutes to allow players to be notified in advance.
Restart your server, and if everything is set up correctly, you should see a green message at startup indicating that it has successfully started.
Tips and Tricks
If your server uses centralized and symlinked egg modifications, set the AUTO RESTART - COUNTDOWN INTERVAL to at least 5 minutes. This allows the main server time to detect and download updates.
If you host only your own servers, you can configure the Auto Restart settings in the Nests for all servers. Ensure you apply these settings before switching to this egg.
If plugins save database changes inefficiently, consider disconnecting players briefly before a restart to trigger the plugin's save logic and ensure data is saved in time. (Rare scenarios)
Set the Auto Restart - Check Interval to a few minutes in order to avoid being rate limited by Steam.
Last updated