RestartsSchedulesPterodactylPerformance3 min read

Schedule automatic restarts

Set up automatic server restarts using Pterodactyl's schedule system.


Why schedule restarts?

Regular restarts help with:

  • Clearing memory leaks from plugins
  • Maintaining stable TPS over long uptimes
  • Applying configuration changes
  • Preventing gradual performance degradation

Set up a restart schedule

  1. Go to panel.baires.host → select your server
  2. Click the Schedules tab
  3. Click Create Schedule
  4. Configure:
  • Name: "Daily Restart" (or your preference)
  • Cron expression: Set your desired timing

Common cron expressions

ScheduleCronDescription
Daily at 5 AM0 5 *Once per day
Every 12 hours0 /12 Twice per day
Every 6 hours0 /6 Four times per day
Every 4 hours0 /4 Six times per day

Add restart tasks

After creating the schedule, add tasks in order:

Task 1: Warning message (optional but recommended)

  • Action: Send Command
  • Payload: say Server restarting in 5 minutes. Please find a safe spot!
  • Time offset: 0 seconds

Task 2: Second warning

  • Action: Send Command
  • Payload: say Server restarting in 1 minute!
  • Time offset: 240 seconds (4 minutes after first)

Task 3: Save the world

  • Action: Send Command
  • Payload: save-all
  • Time offset: 290 seconds

Task 4: Restart

  • Action: Send Power Action → Restart
  • Time offset: 300 seconds (5 minutes after first warning)

Alternative: Restart with a plugin

If you want more control, use a plugin like AutoRestart or RestartManager:

yaml
# plugins/AutoRestart/config.yml
restart-times:
  - "05:00"
  - "17:00"
warning-messages:
  - time: 300
    message: "&eServer restarting in 5 minutes"
  - time: 60
    message: "&cServer restarting in 1 minute!"
  - time: 10
    message: "&4Restarting in 10 seconds..."

Recommended restart frequency

Server sizePluginsRecommended
Small (1-5 players)Few (<10)Every 24h
Medium (5-20 players)Moderate (10-30)Every 12h
Large (20+ players)Many (30+)Every 6h
Heavy modded50+ modsEvery 4-6h

Tips

  • Schedule restarts during low-activity hours (check your player analytics)
  • Always warn players before restarting
  • Use save-all before the restart to prevent data loss
  • Monitor TPS after restarts to confirm improvement
  • If TPS degrades quickly after restart, investigate plugin memory leaks

Was this guide helpful?