Back
Game Servers

Schedule automatic restarts

Use the Schedules tab on Victus to automatically restart your Minecraft server on a cron schedule, keeping TPS healthy and memory clean.

minecraftschedulerestartcronautomationschedules

A daily automatic restart keeps a Minecraft server healthy: it reclaims leaked memory, clears entity buildup and refreshes plugins, which prevents the slow TPS decline that happens on long-running servers. Victus has a built-in Schedules tab that runs tasks on a cron schedule — no external tools needed.

Create a restart schedule

  1. 1Open the Schedules tab and create a new schedule.
  2. 2Set the cron timing — for example run once daily at a quiet hour (e.g. 05:00).
  3. 3Add a task of type "Power" with the action Restart.
  4. 4Optionally add an earlier task that sends a console command to warn players (see below).
  5. 5Save and make sure the schedule is enabled/active.

Warn players before the restart

  1. 1Add a "Send command" task a few minutes before the Restart task.
  2. 2Use say Server restarting in 5 minutes (or broadcast on some setups) so players can reach safety.
  3. 3Sequence the tasks with time offsets so the warning fires before the power action.
text
say Server will restart in 5 minutes
# ...5 minutes later, the Power > Restart task runs

Cron is in the server's time

Schedule times use the panel/daemon clock, which may not be your local time. Pick a low-traffic hour and confirm the "next run" time the panel shows after saving.

Pair it with backups

You can also schedule a Backup task (Backup action) on the same Schedules tab so you get a nightly backup right before or after the restart. See "Create and restore backups".

Related in Game Servers

Create your first Minecraft serverOrder a Minecraft server on Victus, choose your software (egg) and version, then start it in the panel and connect your client.Server will not start / "unexpected error"A checklist for when a Victus server refuses to start or the panel shows an unexpected error — read the console, check the EULA, ports, memory and the JAR.You must accept the EULAMinecraft refuses to run until you accept Mojang's EULA. Set eula=true in eula.txt via the Files tab, then restart."Port is already allocated" fixFix "Failed to bind" / "port is already allocated" on a Victus Minecraft server — align server.properties with your panel allocation and clear stale processes.Out of memory / server keeps crashingDiagnose OutOfMemoryError and repeated crashes on a Victus Minecraft server — right-size RAM, cut memory-hungry settings, and find the plugin/mod at fault.Low TPS and lag (how to fix)Fix lag and low TPS on a Victus Minecraft server — measure TPS, tune view/simulation distance, control entities, and switch to Paper/Purpur.Install pluginsAdd Bukkit/Spigot/Paper plugins to a Victus server — upload the .jar to the plugins folder via the Files tab or SFTP and restart.Install mods (Forge/Fabric)Run Forge or Fabric mods on a Victus server — put mods in the mods folder, match the loader/version, and install the same mods on your client.Change the Minecraft versionChange the Minecraft version of a Victus server from the Startup tab, back up first, and update your plugins/mods to match.Switch software/JAR (Paper/Purpur/Spigot/Vanilla)Change your Victus server between Paper, Purpur, Spigot, Vanilla, Fabric, Forge or Velocity — via the Startup variables or an egg change, backing up first.Upload files via SFTPConnect to your Victus server with an SFTP client to upload worlds, plugins and modpacks fast — using the host, port and username from the panel.Set up a whitelistRestrict your Victus Minecraft server to approved players — enable the whitelist from the console and add players by name.Change the MOTD and server iconCustomise your Victus server listing — edit the MOTD in server.properties (with colour codes) and add a 64x64 server-icon.png.Make yourself op/adminGrant yourself full admin rights on a Victus Minecraft server with the op command from the console — plus notes on Vanilla op levels and plugin permissions.Create and restore backupsProtect your world on Victus — create manual or scheduled backups from the Backups tab and restore them when something breaks.Add sub-users (co-owners)Share panel access to your Victus server without giving away your login — add subusers on the Users tab and grant only the permissions they need.Reset the worldGenerate a fresh world on a Victus Minecraft server — back up, delete or rename the world folders, optionally set a new seed, and restart.Using the consoleUse the Victus panel Console tab to read logs, run Minecraft commands, and control power (start/stop/restart/kill) on your server.