Integrate External Restart Scripts with the Mod
Understand Script Integration
The mod can trigger external scripts or commands when a restart is initiated. This allows you to run custom shutdown procedures, backups, or notifications before the server actually restarts.
Configure the External Script Path
In your mod's configuration, find the external script or command execution section. Specify the full path to your restart script or the command you want to run.
Ensure your script has proper permissions to execute on your server's operating system. Test the script manually first to confirm it works as expected.
Set Execution Timing
Configure when the script runs relative to the restart—typically before shutdown begins. This gives you a window to perform cleanup tasks like saving world data, notifying external services, or rotating log files.
Verify Integration
Check your server logs to confirm the external script executed successfully. If it fails, verify the file path, permissions, and that your script syntax matches what the mod expects.