How to Auto Restart a Project Zomboid Server: Every Night, With a Warning, Without Losing Progress
A Project Zomboid server that stays on for days ends up stuttering, and the day a mod updates on the Workshop your friends can no longer join. Both are fixed the same way: by restarting it. The good news is you don't have to remember: you set it up once and it happens every night on its own, warning whoever is online first.
Why restart the server every day
Because of mods. Workshop mods update whenever their author wants, and the server keeps the version it downloaded when it started. Anyone who joins later with the new version gets “Workshop item version is different than server's” or mismatched files. On restart, the server downloads the latest version of every mod.
Because of memory. Over the hours the server keeps loading map areas, zombies and items, and memory use goes up. If the game gets worse the longer the server has been running, a restart leaves it like freshly started (more about lag).
Because of game updates. When a new build comes out, the server updates itself on start. If you don't restart it, players who have already updated their game can't join until someone does (how to update the server).
Rather not set it up yourself? Project Zomboid servers from €12 a month, no contract and a full refund within 72 hours. Or create a free Project Zomboid server, no card needed.
First: make it save often
A proper restart loses nothing: the server shuts down with quit, which saves the world before exiting. But by default “Save the world every (minutes)” (SaveWorldEveryMinutes) is 0, and the map is only saved when players leave an area. Set it to 10 or 15: if the server ever goes down without warning, you only lose those minutes.
If you want to save by hand at any time, the command is save in the console (or /save in chat with an admin account).
How to schedule the restart in the panel
Open “Schedules”
In your server, “Advanced settings” → “Schedules”.
Choose what to do
Under “What to do”, “Restart the server”.
Choose when
“Every day” and a time when nobody plays, for example 06:00. It's mainland Spain time. If your group plays a lot, “Every few hours” lets you restart it every 6, 8 or 12 hours.
Leave the warning ticked
“Warn players one minute before” sends everyone online an in-game message and restarts a minute later. “Only if the server is online” is ticked too: that way it doesn't start a server you had left off.
Click “Create the schedule”
It shows up under “Your schedules” with when it runs next. “Run it now” tests it on the spot.
A warning with more notice
One minute is enough for someone exploring, not for someone driving with a horde behind them. Create another schedule with “Send a message to players”, the text “Restart in 10 minutes: find somewhere safe” and the same frequency, ten minutes earlier (05:50 if you restart at 06:00). In Project Zomboid the panel sends it with servermsg and everyone sees it on screen.
If you'd rather do it by hand on a one-off day, type servermsg "Restart in 5 minutes" in the “Console” and then click “Restart”.
What time to pick
The emptiest one. For a group of friends in Europe, between 5 and 7 in the morning there's almost never anyone on. If people from America play on your server, think about their evening before deciding: 06:00 in Spain is midnight in New York.
If you have a fixed session (Saturday at 22:00, say), a restart an hour before leaves mods and the build up to date just as you're about to join.
If it doesn't start after the restart
It's almost always a mod that updated and no longer works with your version of the game. The “Console” usually tells you which: look for the last error and the mod name next to it. Remove it under “Mods” and start the server again. The rest is in why a Zomboid server won't start.
With NapNodes
Everything above is done from the panel, with no scripts or cron: “Schedules” lets you say what to do and when in plain words. With a plan, the server is on 24 hours a day and the nightly restart keeps it up to date.
On the free server you don't need it: it shuts down on its own after an hour with nobody on, and every time you start it, it boots fresh with mods and the build up to date. If you want to try it with your friends before paying anything, the free Project Zomboid server has 6 GB, Workshop mods and needs no card.
Frequently asked questions
How do I make my Project Zomboid server restart automatically?
With a schedule: in the NapNodes panel, “Advanced settings” → “Schedules” → “Restart the server”, “Every day” and the time. Tick “Warn players one minute before”.
Do you lose progress when restarting a Zomboid server?
No, if it shuts down with quit, which saves before exiting: that's what “Restart” does in the panel. Also set “Save the world every (minutes)” to 10 or 15 in case it goes down without warning.
How often should you restart a Project Zomboid server?
Once a day is enough for almost everyone. With lots of players or lots of mods, every 6 or 8 hours.
Does restarting update the server's mods?
Yes: on start, the server downloads the latest version of every Workshop mod. That's why a restart fixes “Workshop item version is different than server's”.
How do I warn players before restarting?
With servermsg and the text in quotes in the console, or with a “Send a message to players” schedule a few minutes before the restart.
Shall we set it up for you?
Project Zomboid servers from €12 a month, never oversold: your RAM is yours alone. And if you'd rather start without paying, there's a free Project Zomboid server, no card needed.
Not sure whether your server is online? Check it in a second with the Project Zomboid server status checker: players, version and password, free.
Keep reading
- How to Ban and Unban Players on a Project Zomboid Server (and What to Do If You're Banned)
How to kick, ban and unban a player on your Project Zomboid server (Build 42): by username, by Steam ID or by IP, and what to do if you've been banned.
- Griefing in Project Zomboid: stop players burning or wrecking bases on your server
How to stop griefing on a Project Zomboid server (Build 42): who can join, the sledgehammer, fire, safehouses, finding out who did it and rolling back.
- Project Zomboid Max Players: How Many Your Server Holds
How many players a Project Zomboid server allows (Build 42), how to raise MaxPlayers, how many it really handles for its RAM and what happens when it's full.