Cloudron makes it easy to run web apps like WordPress, Nextcloud, GitLab on your server. Find out more or install now.


    Cloudron Forum

    • Register
    • Login
    • Search
    • Categories
    • Recent
    • Tags
    • Popular

    Autorestart ?

    Valheim
    5
    19
    891
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • K
      Krashdeez 0 last edited by

      Hello,

      is there the possibility to add an autorestart / daily restart at xxx clock? because with 10 people and a lot of built up land a restart can work wonders 🙂
      thanks and greetings
      Krash

      micmc 1 Reply Last reply Reply Quote 1
      • nebulon
        nebulon Staff last edited by

        This might be something for @BrutalBirdie to chime in, he did all the packaging work 🙂

        1 Reply Last reply Reply Quote 1
        • micmc
          micmc @Krashdeez 0 last edited by

          @krashdeez-0 This sounds like a pretty cool utility idea to add-on so I vote YES. 🙂

          Andy


          https://marketingtechnology.agency
          For cutting edge web technologies

          1 Reply Last reply Reply Quote 0
          • robi
            robi last edited by

            Sounds like a cron option.

            Life of Advanced Technology

            nebulon 1 Reply Last reply Reply Quote 0
            • nebulon
              nebulon Staff @robi last edited by

              @robi I think one problem, at least from when I was playing the game was that you don't really know if players are currently actively playing or not and ideally you'd like to let people log off first in a somewhat sane in-game situation.

              robi 1 Reply Last reply Reply Quote 0
              • K
                Krashdeez 0 last edited by

                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

                1 Reply Last reply Reply Quote 0
                • robi
                  robi @nebulon last edited by

                  @nebulon usually there's a shutdown command with a time delay and notification that game servers do..

                  Life of Advanced Technology

                  BrutalBirdie 1 Reply Last reply Reply Quote 0
                  • BrutalBirdie
                    BrutalBirdie Staff @robi last edited by

                    @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.

                    Like my work? Consider donating a beer 🍻 Cheers!

                    robi 1 Reply Last reply Reply Quote 0
                    • robi
                      robi @BrutalBirdie last edited by

                      @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.

                      Life of Advanced Technology

                      BrutalBirdie 1 Reply Last reply Reply Quote 0
                      • BrutalBirdie
                        BrutalBirdie Staff @robi last edited by

                        @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 😄

                        Like my work? Consider donating a beer 🍻 Cheers!

                        K 1 Reply Last reply Reply Quote 0
                        • K
                          Krashdeez 0 @BrutalBirdie last edited by

                          @brutalbirdie you can send a broadcast message, to server when umod is installed.

                          BrutalBirdie 1 Reply Last reply Reply Quote 0
                          • BrutalBirdie
                            BrutalBirdie Staff @Krashdeez 0 last edited by

                            @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.

                            Like my work? Consider donating a beer 🍻 Cheers!

                            K 1 Reply Last reply Reply Quote 0
                            • K
                              Krashdeez 0 @BrutalBirdie last edited by

                              @brutalbirdie

                              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.

                              BrutalBirdie 2 Replies Last reply Reply Quote 0
                              • BrutalBirdie
                                BrutalBirdie Staff @Krashdeez 0 last edited by BrutalBirdie

                                @krashdeez-0

                                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.

                                Like my work? Consider donating a beer 🍻 Cheers!

                                1 Reply Last reply Reply Quote 0
                                • BrutalBirdie
                                  BrutalBirdie Staff @Krashdeez 0 last edited by

                                  @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.
                                  

                                  Like my work? Consider donating a beer 🍻 Cheers!

                                  K 1 Reply Last reply Reply Quote 0
                                  • K
                                    Krashdeez 0 @BrutalBirdie last edited by

                                    @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.

                                    BrutalBirdie 1 Reply Last reply Reply Quote 0
                                    • BrutalBirdie
                                      BrutalBirdie Staff @Krashdeez 0 last edited by BrutalBirdie

                                      @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.

                                      Like my work? Consider donating a beer 🍻 Cheers!

                                      nebulon 1 Reply Last reply Reply Quote 0
                                      • nebulon
                                        nebulon Staff @BrutalBirdie last edited by

                                        @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.

                                        K 1 Reply Last reply Reply Quote 0
                                        • K
                                          Krashdeez 0 @nebulon last edited by

                                          @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 🙂

                                          1 Reply Last reply Reply Quote 0
                                          • First post
                                            Last post
                                          Powered by NodeBB