Skip to content
Multigaming
Multigaming 100% localFreeOpen access

Restart scheduler

Generate cron, a systemd timer or a Windows task (schtasks) with RCON player warnings before each restart.

Last updated: 10/9/2026

100% local processing — saved in your browser.

Documentation
Schedule
Player warnings

Comma-separated list, e.g. 30,15,5,1.

say: Minecraft, Rust, 7 Days to Die, Source — ServerChat: ARK — Broadcast: Palworld — servermsg: Project Zomboid — say -1: DayZ/Arma (BattlEye). Check the RCON command sheet.

RCON client

Name or path of the executable (mcrcon, mcrcon.exe). Must accept -H, -P and the command as an argument.

Restart

systemd unit or Windows service to restart.

Path where you will put restart-gameserver.sh / .ps1 (Windows: C:\gameserver).

restart-scheduler.txt
Live preview — automatically saved in your browser.
# --- /opt/gameserver/restart-gameserver.sh (chmod +x) ---
#!/bin/bash
# Generated by games-tools.game-rank.com
# restart-gameserver.sh - warn players via RCON, save, then restart the service.
# Provide the RCON password via the MCRCON_PASS environment variable (never hard-code it here).
set -u
RCON_BIN="mcrcon"
send() { "$RCON_BIN" -H 127.0.0.1 -P 25575 "$1" >/dev/null 2>&1 || echo "RCON failed: $1"; }

send "say Server restart in 30 minute(s)"
sleep 900
send "say Server restart in 15 minute(s)"
sleep 600
send "say Server restart in 5 minute(s)"
sleep 240
send "say Server restart in 1 minute(s)"
sleep 60
send "save-all"
sleep 5
systemctl restart gameserver

# --- crontab of root (sudo crontab -e): systemctl restart needs privileges ---
# MCRCON_PASS=...   (define it at the top of the crontab or source a chmod 600 env file)
30 3 * * * /opt/gameserver/restart-gameserver.sh >> /var/log/gameserver-restart.log 2>&1
# The job starts at 03:30; the restart happens at 04:00 (warnings: 30 min, 15 min, 5 min, 1 min).
Server installation guideNo server yet? Install it locally or on a VPS / dedicated server, ports and firewall included.

How to use Restart scheduler?

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.

  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.

Read the full documentation →

Frequently asked questions

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