Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

restart_delay always zero is causing restarts to take a bit too long #10

Closed
johnstsimoes opened this issue May 31, 2022 · 4 comments
Closed

Comments

@johnstsimoes
Copy link

I'm not sure if this is an issue or just a question, but when a mod change is detected and server stops (after the normal countdown) it's taking way longer (maybe close to 10 minutes) than usual for the server to start again. What is the best way to configure restart_delay to, let's say, 1 minute? Thanks!

@quarantin
Copy link
Owner

quarantin commented Jun 1, 2022

As far as I remember you can only change it when performing a manual restart, like this:
pzrestart --now

But if you don't want to wait for the restart sequence you can try to remove values from the restart-sequence list in /etc/pzst/config.json, but I'm not sure it would be working, haven't tested it myself. Worst case you could just set the restart sequence to one minute or so.

@johnstsimoes
Copy link
Author

Thanks! We are happy with the restart sequence and it's working perfectly, sorry if I didn't explain the problem properly.

The real problem is once the countdown goes to zero, the server shuts down and sits idle for about 5 minutes before it starts again.

@quarantin quarantin reopened this Jun 2, 2022
@quarantin
Copy link
Owner

Every time pzserver restarts, pzst will perform a backup of your Zomboid/Saves folder. In case the save is big and you have a slow hard disk I guess it could take some time for the process to finish. You could try to disable the backup temporarily to validate this assumption. As pzstadmin user, run the following command:
sudo nano /usr/local/bin/pzstartloop

and then comment out the following line:
UNSAFEBACKUP=${UNSAFEBACKUP} pzbackupsave

Like this (just add a # character at the beginning of the line):
#UNSAFEBACKUP=${UNSAFEBACKUP} pzbackupsave

For the change to take effect you have to stop the pzserver:
pzquit

Then start the pzserver the usual way:
pzstart

On next restart the backup should not occur.

@johnstsimoes
Copy link
Author

Many thanks - that's what I was looking for!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants