[Release] Auto Restart Server

restart
automatic

#1

Based on Singlefries script, thanks to him !

https://■■■■■■■■■■■■.net/viewtopic.php?t=165

Today i give you an auto reboot script with many reboot compatible and ingame message ! ESX compatible

  1. Open server.cfg and start reboot resource once you placed it in your recoures folder.

  2. Change the reboot schedule with the time you want in restart.bat. Choose a full hour, like 12, 6, 15, …

  3. Edit your directory path at the 2nd and 25th line in restart.bat.

  4. Edit the server.lua file in the reboot resource, and change the hours as you want.

  5. Open restart.bat, and keep both windows open.

Done !

auto_reboot.rar (1.5 KB)


[Release] Windows Auto Restarter/Server Manager v1.1
[Search][Request] Server restart info
#2

Moved to #development:releases


#3

Couldn’t you just use scheduled tasks and the Cron resource to do this? Cron for the messages, scheduled task to reboot.


#4

Hello @Random_0100! I made a script similar to yours to auto restart the server but with a few extra features. I put a download link to your resource “reboot” that prompts the users in game a message to let them know about the restart. I also added a link to this topic.

My topic: [Release] Windows Server Manager v1.1
If you would like that I remove one or both links, please let me know.


#5

can i just keep it as it is do you know how many hours it stays up until restarts


#6

it dosn’t stop the server it just starts another cdm.exe window, how do i fix that ?


#7

I got it to work in my dev server but not on the main. And its the same codes. So weird. I Think you know who I am. So just type to me at discord KeN1cs#8277


#8

Hoxton_115 and Ken1cs, check in restart.bat on the 2nd and the 25th line if you put your server directory


#9

Will look for that thanks


#10

it dosn’t stop the server it just starts another cdm.exe window, how do i fix that ?


#11

Erm, so i started reboot.bat file and it deleted all my server files. Help!


#12

What did you change in the .bat file?


#13

The directory and thats it


#14

What did you change the directory to? Its supposed to delete the cache. You may have changed it to delete your whole server?

Hopefully you have a backup


#15

well, shit you were supposed to direct it into your cache? And i have a back up from like 4 weeks ago lol