RUNNING WITH RIFLES
http://www.runningwithrifles.com/phpBB3/

Server Restart?
http://www.runningwithrifles.com/phpBB3/viewtopic.php?f=5&t=1881
Page 1 of 1

Author:  Arkin [ Fri Oct 24, 2014 11:58 am ]
Post subject:  Server Restart?

Hey guys!

Quick question: Every once in a while our RwR server crashes for whatever reason (Servers, you know how temperamental they can be). When that happens we obviously manually start it back up, only some times it takes us a while to realise it's down. I was wondering if somebody out there has an automatic restart script for their server (or is willing to show me how to make one regardless). Any help would be very appreciated.

Thank you all for your time!

Author:  DoomMetal [ Fri Oct 24, 2014 12:30 pm ]
Post subject:  Re: Server Restart?

DocStone has set up something like this for the SAS servers, so your best bet is probably to ask him. :)

Author:  Arkin [ Fri Oct 24, 2014 2:06 pm ]
Post subject:  Re: Server Restart?

Thanks, I will!

Author:  {SAS}DocStone [ Fri Oct 24, 2014 2:25 pm ]
Post subject:  Re: Server Restart?

Hey Arkin, I just use a simple batch file that starts up then restarts all the servers we run every 12 hours:

Code:
@ECHO OFF
:START
CLS
ECHO Starting Server Proccesses
ECHO.
TIMEOUT 5
ECHO Starting RWR Standard Server
ECHO.
e:
CD e:\RWR1
START "RWR Standard" rwr_server.exe
TIMEOUT 10
ECHO Starting map rotation script
ECHO.
CD E:\RWR1\media\packages\vanilla\scripts
START "Map Rotation Script" php start_classic.php
TIMEOUT 10
ECHO Starting RWR Invasion Server
ECHO.
CD e:\RWR2
START "RWR Invasion" rwr_server.exe
TIMEOUT 10
ECHO Starting invasion script
ECHO.
CD E:\RWR2\media\packages\vanilla\scripts
START "Invasion Script" php start_invasion.php
TIMEOUT 10
ECHO Starting RWR Minimodes Server
ECHO.
CD e:\RWR3
START "RWR Invasion" rwr_server.exe
TIMEOUT 10
ECHO Starting invasion script
ECHO.
CD E:\RWR3\media\packages\vanilla\scripts
START "Minimodes Script" php start_minimodes.php
ECHO 12 Hour Countdown Started
ECHO.
TIMEOUT 43200
ECHO Killing Servers
ECHO.
TASKKILL /f /im rwr_server.exe
ECHO.
TIMEOUT 30
ECHO Restarting servers
ECHO.
GOTO START


Obviously you would modify it as to your needs, but it is as simple as that.

Author:  Arkin [ Fri Oct 24, 2014 2:47 pm ]
Post subject:  Re: Server Restart?

Thank you!

Page 1 of 1 All times are UTC
Powered by phpBB® Forum Software © phpBB Group
http://www.phpbb.com/