Restart server at x time
Hi guys some one can help me to make a script to can restart at x time the server every day? i search on google but no founded a script or something like that.
os linux
not sure if this will help..On my old server i just used punkbuster with its timer.. then at around 3am had pb execute /quit command, but I think my host had a script to reboot quake if that was done. Maybe yours does too?Instead of pb timer you'd just use the crontab.txt to execute.
well if you run pb you can do it this way for sure
pb_sv_task 86400 0 quit
86400 being 24hrs in secs and pb starts time when server starts. so you'd start the server at the time you'd want it to reboot at.
hope this helps.-dis
if you use some other binarys you can run 24/7/12

i have a script on my server to can reboot the server by quit.... rcon quit.... so if i can do a script with this command i can do all
the problem is to set the time and how..
if so, then put this line to your crontab.txt:
0 5 * * * /quit
'5' means 5 o'clock in the morning

if so, then put this line to your crontab.txt:
0 5 * * * /quit
'5' means 5 o'clock in the morning
also make sure this is in your server config file .. xp_crontab "crontab.txt"
"rcon" stands for "remote console" to make changes on server with commands sent from clients console - no need to use it in scripts uploaded on server.
You can execute script in crontab with /exec restart.cfg
,
but your script would have only quit
command in it.
Do you also want to have a "shortcut" for (de)activating this restart feature?
i have a script on my server to can reboot the server by quit.... rcon quit.... so if i can do a script with this command i can do all
the problem is to set the time and how..