arkmanager / ark-server-tools

Set of server tools used to manage ARK: Survival Evolved servers on Linux
MIT License
680 stars 144 forks source link

Automatic Restarts #1159

Open Su1C1daL opened 3 years ago

Su1C1daL commented 3 years ago

More of a question than an issue but not sure where else to ask the question. I did do some searching and attempted to find it on my own so this isn't my first avenue to figure this out and have been running AST for about a year. I had stopped playing for a while and everything seemed fine and always had been.

Q: Where is the auto restart set for the server? More info: I have noticed that daily when playing at the same time every day the server wants to restart, which is fine, but would like to adjust when the server does it so that its at the least used times. It is not in the cron.daily folder and I have not set anything atleast that I can recall from a year ago or more.

Q: Does the 'cancelupdate' have a duration that you can set before it prompts to want to restart again? If not could you add a duration option to the /cancelupdate command in chat EG. /cancelupdate 120 -Time in minutes? More info: Seems the cancelupdate only last maybe 20 minutes then wants to start the restarting countdown again. Which is fine if its about to be empty but I am continually doing the cancelupdate to keep playing.

My apologies if this is the wrong avenue for asking these questions. If so please point me the right direction to follow up. Thanks in advance!!!

klightspeed commented 3 years ago

Q: Where is the auto restart set for the server?

This should be in the crontab for the user under which the server runs. The usual command to edit the crontab is crontab -e

Q: Does the 'cancelupdate' have a duration that you can set before it prompts to want to restart again? If not could you add a duration option to the /cancelupdate command in chat EG. /cancelupdate 120 -Time in minutes?

/cancelupdate will cancel the current update, releasing the update cron job to be re-scheduled. It sounds like you have set the update to run every 20 minutes (i.e. */20 * * * * arkmanager update @all)

Su1C1daL commented 3 years ago

/15 * /usr/local/bin/arkmanager --cronjob update @all --update-mods --warn --backup --saveworld --args -- >/dev/null 2>&1

That is the only thing that is listed so I now know how to change how often it checks for updates but I'm still confused on the restarts everyday at 8pm ET. Maybe its a mod or Ark update at those times. Ill see today and confirm, maybe I'm just crazy.

EineWelt commented 3 years ago

If you're already playing at 8PM and the Server needs a Update, you can use the "--ifempty" Option, so you can play , if you're leaving the Server, "he" is running the Update automatically.

/15 * /usr/local/bin/arkmanager update --update-mods --saveworld --backup --ifempty @ALL -- >/dev/null 2>&1