# How To Schedule Restarts On Your StarRupture Server (/docs/starrupture/scheduled-restarts)



Regular restarts help keep your StarRupture server running smoothly by clearing memory and refreshing the game state. Here's how to set up automatic restarts.

Creating a Restart Schedule [#creating-a-restart-schedule]

<div className="fd-steps">
  <div className="fd-step">
    Open Schedules [#1-open-schedules]

    Access the XGamingServer Panel and select your server. In the sidebar, go to `Schedules`.
  </div>

  <div className="fd-step">
    Create a New Schedule [#2-create-a-new-schedule]

    Click **Create Schedule** and give it a name like "Daily Restart".
  </div>

  <div className="fd-step">
    Set the Time [#3-set-the-time]

    Configure when the restart should happen. A common schedule is once daily during off-peak hours (e.g., 4:00 AM).
  </div>

  <div className="fd-step">
    Add a Power Action [#4-add-a-power-action]

    Add a task to the schedule and select **Restart Server** as the action.
  </div>

  <div className="fd-step">
    Save the Schedule [#5-save-the-schedule]

    Save your schedule. The server will now automatically restart at the configured time.
  </div>
</div>

Recommended Restart Frequency [#recommended-restart-frequency]

| Server Usage                          | Recommended Schedule |
| ------------------------------------- | -------------------- |
| Light (1-2 players, small base)       | Every 24 hours       |
| Medium (3-4 players, growing factory) | Every 12 hours       |
| Heavy (large factory, frequent play)  | Every 6-8 hours      |

> 💡 **Tip:** Late-game StarRupture servers with large factories benefit from more frequent restarts. If you notice increasing lag over time, try restarting more often.

> 📝 **Note:** Players connected during a restart will be disconnected briefly. They can rejoin once the server finishes restarting, which usually takes 1-2 minutes.
