accweb icon indicating copy to clipboard operation
accweb copied to clipboard

Start server at specific time/date

Open Kugelschieber opened this issue 5 years ago • 6 comments

Kugelschieber avatar Jul 21 '20 08:07 Kugelschieber

Maybe add scheduled restart of chosen server(s) as well? If possible.

Menteroth avatar Oct 27 '20 19:10 Menteroth

You mean automatically restarting them at a certain time? What would that be good for?

Kugelschieber avatar Oct 27 '20 19:10 Kugelschieber

Yeah that. Because long endurance races seems to take a toll on the server and create issues. That's what it sounded like at least. Not entirely sure. So it sounded like it could be a decent enough feature perhaps.

I'll see if I can ask around too.

Menteroth avatar Oct 27 '20 19:10 Menteroth

Asked around a bit. Didn't seem to be a problem.

Menteroth avatar Oct 27 '20 20:10 Menteroth

Tjis would be very usefull for us at Light Speed Racing. We are comming from OGP and was using the cron module to automatic start race servers when they were suppose to go live

arelstone avatar Sep 21 '23 17:09 arelstone

For those interested in scheduled restart;

I found that deleting the cfg folder after starting the server will still run a full cycle of the configured sessions (for example P/Q/R, Q/R). After sessions have run it will output results files nicely, and the server will halt because of not having a valid config file available.

Using task scheduler you could create a batch script that runs the accserver.exe (or call API) and then delete the (contents of the) cfg-folder a few seconds later. This way only 1 practice, qualifying and race session will run. Ideal for league circumstances.

I personally use it when the server needs to reboot, so everyone can finish his race.

Renegade89 avatar Dec 21 '23 23:12 Renegade89