
Планувальник перезапусків
Створіть cron, таймер systemd або завдання Windows (schtasks) з попередженнями гравцям по RCON перед кожним перезапуском.
Останнє оновлення: 09.10.2026
Обробка 100 % локально — збереження у вашому браузері.
Список через кому, наприклад 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.
Name or path of the executable (mcrcon, mcrcon.exe). Must accept -H, -P and the command as an argument.
systemd unit or Windows service to restart.
Path where you will put restart-gameserver.sh / .ps1 (Windows: C:\gameserver).
# --- /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).
Як користуватися: Планувальник перезапусків
Регулярний перезапуск ігрового сервера звільняє пам'ять і застосовує оновлення, але гравців треба попереджати. Інструмент пише скрипт з попередженнями й перезапуском та розклад для Linux (cron або systemd) чи Windows.
Виберіть платформу (cron, systemd або Windows), час перезапуску та дні.
Вкажіть попередження в хвилинах до перезапуску, повідомлення й команду чату гри.
Заповніть RCON-клієнт (хост, порт), команду збереження й назву служби.
Збережіть кожен блок у файл, указаний у коментарі, задайте MCRCON_PASS і ввімкніть розклад.
Поширені запитання
Інші інструменти Multigaming





