Razzmatazzz / ValheimServerWarden

Manage one or more Valheim dedicated server instances.
GNU General Public License v3.0
38 stars 4 forks source link

Startparameters #28

Closed tempsn closed 3 years ago

tempsn commented 3 years ago

hello, thank you for the great tool, my question: Are there any startparameters or other methods to easy start/stop/restart the server? I am trying to shutdown the server at certain times and looking for a safe and automatic way to stop the valheim server before the system shutdown.

Razzmatazzz commented 3 years ago

So, if I'm understanding correctly:

Is That all correct? The third part is the easiest. Just turn on the "Autostart" option for the server and set VSW to run when windows starts. On the first point, what's your use case that requires regularly rebooting the PC? That shouldn't really be necessary in most instances. I'm loathe to clutter up the interface with more options for extreme edge cases. But one option could be for VSW to monitor its own folder for the presence of a file (e.g., "shutdown.now"), and when it detects that file it will shut down all running servers. That way, you could automate creation of that file in the VSW folder before your computer shuts down and the VSW interface wouldn't be cluttered.

tempsn commented 3 years ago

But one option could be for VSW to monitor its own folder for the presence of a file (e.g., "shutdown.now"), and when it detects that file it will shut down all running servers. That way, you could automate creation of that file in the VSW folder before your computer shuts down and the VSW interface wouldn't be cluttered.

Sounds great how hard would this be to implement?

Razzmatazzz commented 3 years ago

Not hard at all. I already have it working.

tempsn commented 3 years ago

So a future version will have this option?

Razzmatazzz commented 3 years ago

Yes, the future version I just released.

tempsn commented 3 years ago

Thank you works very well.