Autorestart ?
-
-
Cronjob is a nice idea, but anyone who joints the server, I can tell them that at 7 pm is an automatic restart, then the server again automatically saves every 20 minutes. so you could time it at 2 restarts a day that the 2nd is tuned so that the save point is 5 minutes before the restart.
and thus one could then also schedule the backups at the right time. Win Win
-
@robi said in Autorestart ?:
@nebulon usually there's a shutdown command with a time delay and notification that game servers do..
so far not for valheim.
-
@brutalbirdie then break it down by parts.. send out a notification to all players then after a shell timer expires, send out another shutdown message, and after short shell timer you restart.
-
@robi said in Autorestart ?:
@brutalbirdie then break it down by parts.. send out a notification to all players then after a shell timer expires, send out another shutdown message, and after short shell timer you restart.
There is also no way to send messages from the server
-
@brutalbirdie you can send a broadcast message, to server when umod is installed.
-
@krashdeez-0 said in Autorestart ?:
@brutalbirdie you can send a broadcast message, to server when umod is installed.
Yes but since a modded Valheim server is not default this is no viable option.
-
I understand what you mean, however umod has the advantage of the users who connect, do not need to install an extra version updates etc.. works with the normal "vanilla" version it would be configured here also the "autorestart", but that does not work.
On a 2nd server outside of my "main" server and cloudron I have a test server running and there are things installed like itemremover, gloablchat and broadcaster that run without problems, next I will install the bandwidth optimizer.
I personally know too little about docker and so I can not write myself a simple "restart script", it does not have to be more, just a line restart, every xx h or at a fixed time.
-
Oh I thought umod was a mod for Valheim but it looks like umod is an alternative to BepInEx. Is that correct?
Because right now I integrated support for BepInEx since it was the first platform to support mods for Valheim.
Sorry then umod is of the table right now, since I did not integrate that into the app.
-
@krashdeez-0
Did you even know the Cloudron App Supports mods?Post Install - Post Update Updated Parameters After updates (see changelog) new parameters could have been added. Please check the /app/code/.env file and compare it to your /app/data/.env file and add missing lines. Mod Support If MODSUPPORT is enabled all files and folders from /app/data/mods/ will by synced to /run/vhserver-steam/. Place your Mod *.dll files in /app/data/mods/BepInEx/plugins/ and the Mod Config files in /app/data/mods/BepInEx/config/ Mod Example ValheimPlus The UnixServer.zip of ValheimPlus has the same folder structure which cold be extracted into /app/data/mods/ but this would also overwrite the cloudron auto installed version of BepInEx. If you make a mistake here, don't worry. Simply clear the /app/data/mods/ folder and it will be recreated after a app restart.
-
@brutalbirdie yes i know that addons are supported, i have also tested it,
but then i found umod and there was an "autorestart", Broadcast and Itemremover , and i thought jeah fits then vallheim hald just come to another server - never mind.The fact is that an autorestart doesn't work there either and that's why, as at the start, my request for an autorestart button at "Apprestart" that can be set so that the whole Docker instance is restarted at xx:xx.
please don't take this as an attack or anything but this is fact.
-
@krashdeez-0 said in Autorestart ?:
please don't take this as an attack or anything but this is fact.
Nah not at all I was simple wrapping my head around the issue. All good mate.
I always had this in mind when it comes to autorestart a server.
If you need to auto restart a server every X time otherwise the performance drops, is just ridiculous.
I know it has to be done in many cases but common for real? The devs could do a better work then
Ok so right now there is no feature for cloudron to schedule app restarts.
If this would be possible inside the app, hmm maybe.
I will have to look into it. -
@brutalbirdie one option would be to have a cron task which instructs supervisor to restart the valheim server. If restarting on a fixed schedule is the way forward.
-
@nebulon @brutalbirdie Thank you for the effort though I thought an option for the docker container would be the best or easiest way
It is after all still an early access game and runs but still more stable than some other games / mods, I can still remember Arma2 Dayz mod, there you had to restart the server, otherwise it was just more horrible after 5 hours of play, because just too many objects that could not be unloaded were present.
but definitely many thanks