Skip to content
Multigaming

Documentation: Restart scheduler

Scheduled restart generator for game servers: time, days, warnings (30, 15, 5, 1 minutes…) sent by a command-line RCON client (for example mcrcon), save command, then service restart. Produces the bash or PowerShell script and the cron, systemd (service + timer) or Windows schtasks schedule. The RCON password stays in an environment variable, never in the script.

Last updated: 10/9/2026

Open the tool

Restarting a game server regularly frees memory and applies updates, but players must be warned. This tool writes the warning-and-restart script and the schedule for Linux (cron or systemd) or Windows.

How to use the tool

  1. Choose the platform (cron, systemd or Windows), the restart time and the days.

  2. Enter the warnings in minutes before the restart, the message and the game's chat command.

  3. Fill in the RCON client (host, port), the save command and the service name.

  4. Save each block in the file named in its comment, set MCRCON_PASS, then enable the schedule.

How the schedule works

The scheduled task starts at the first warning (restart time minus the largest delay). The script sends each warning, waits the difference between two warnings, saves, then restarts the service: with 30,15,5,1 minutes and a 04:00 restart, the task starts at 03:30. If the start time falls before midnight, days are shifted automatically. The script assumes an RCON client compatible with the “-H host -P port command” syntax (mcrcon); adapt the send() line for another client. The message syntax depends on the game: check it with the RCON command sheet.

sudo mkdir -p /etc/gameserver
echo 'MCRCON_PASS=ChangeMe!' | sudo tee /etc/gameserver/rcon.env
sudo chmod 600 /etc/gameserver/rcon.env

Frequently asked questions

Is the RCON password in the script?
No. The script reads the MCRCON_PASS environment variable (recognised by mcrcon). Store it in a read-only file (chmod 600) or a Windows system variable.
cron, systemd or Windows task?
On Linux, systemd gives logs and error handling (journalctl); cron is simpler. On Windows, use Task Scheduler via schtasks.
Multigaming
MultigamingOpen access
Default ports for FiveM, Minecraft, Rust, DayZ, ARK, Valheim, Palworld, CS2, Arma… and a check of your list of opened ports.
PortsNetworkOpen
Documentation
Multigaming
MultigamingOpen access
Admin commands per game (Minecraft, Rust, ARK, Palworld, DayZ, CS2…) ready to copy, filled with your parameters. No network.
RCONAdministrationOpen
Documentation
Multigaming
MultigamingOpen access
Estimate a game server's CPU, RAM, disk and bandwidth from slots, with visible formulas and editable assumptions.
SizingCostOpen
Documentation
Multigaming
MultigamingOpen access
Turn a port list into ufw, iptables, nftables or Windows netsh rules for your game server.
FirewallSecurityOpen
Documentation
Multigaming
MultigamingSign-in required
Compare two config files (INI, CFG, JSON): line-by-line and key-by-key differences, locally in your browser.
DiffConfigurationOpen
Documentation
Multigaming
MultigamingSign-in required
Generate a bash or PowerShell backup script (tar, 7z, rsync/robocopy) with retention, service stop and a cron line.
BackupScriptsOpen
Documentation