Tripwire Interactive Forums

Go Back   Tripwire Interactive Forums > Red Orchestra: Ostfront 41-45 Forums > Technical Support > Dedicated Server Support

Dedicated Server Support The Place For All You Serveradmins

Reply
 
Thread Tools Display Modes
  #1  
Old 07-18-2006, 06:50 AM
ButchCassidy's Avatar
ButchCassidy ButchCassidy is online now
Moderator
 
Join Date: Feb 2006
Location: The Hole in the Wall
Posts: 2,130
Default RO windows Server Auto restart on crash.

I have read several Admins having problems with crashes and having to manually restart their servers.
With this in mind I thought I would release our windows server auto restart code which my Clan The Wild Bunch apply to all our servers via a .bat file.
If you run a windows based server then the simplest way to set this up is to make a shortcut of your RO_server.bat file and place it on the desktop.
Edit the shortcut and place the following code inside.

YOU WILL NEED TO EDIT THE CODE TO SUIT THE PATH OF YOUR OWN INSTALLATION AS I HAVE SHOWN IN RED and of course replace the command line (in green) with your own.


@echo off
title RO Public server
echo Look at the top of the window.
echo.
cd c:\ROOst
set GameText===== RO Public server ====
set GameCmd=C:\ROOst\system\ucc server RO-Basovka.rom?deathmessagemode=3?FriendlyFireScale=1 ?FFPunishment=1?PreStartTime=45?RoundLimit=3?WinLi mit=2?TimeLimit=0?FFKillLimit=5?FFDamageLimit=300? VACSecure=true?game=ROEngine.ROTeamGame?MinPlayers =0? -log=ServerLog.log
echo %GameText%
echo.
echo This is the %GameText% Auto Runner
echo To Restart the server close the corresponding Game
echo To Shut down the server close this window.
echo.
set LogFile="%homepath%\Desktop\Logs\%GameText%.log"
echo Output is logged to %LogFile%
echo.
echo This is the command line: >>%LogFile%
echo %GameCmd% >>%LogFile%
:start
echo ReStarting %GameText%
date/t
time/t
echo ReStarting %GameText% >>%LogFile%
date/t >>%LogFile%
time/t >>%LogFile%
call %GameCmd%
goto start


I hope this will help out those having problems with the odd random crash?
__________________

I'm on a vodka diet, I've lost 3 days so far.
Beta test rig: I7-920 overclocked to 3.5ghz, 6gb DDR3, ATI 4890 2gb, Realtec HD sound,Win 7 x64
Reply With Quote
  #2  
Old 07-18-2006, 08:49 AM
Punchy Punchy is offline
Senior Member
 
Join Date: Mar 2006
Posts: 115
Default

Hi BC,

Couple of questions m8, thanks for this I have been using your bat file for a while now but have a problem with the log file path, I get "System cannot find the path specified" tried manually creating the files for the path, but no joy.

Also is it like the old CoD bat, starts another game window because mine doesn't if it should.

@echo off
title RO Public server
echo Look at the top of the window.
echo.
e:
cd e:\ROOst
set GameText===== RO Public server ====
set GameCmd=E:\ROOst\system\ucc server RO-Arad.rom?FriendlyFireScale=1?FFPunishment=1?PreSta rtTime=30?RoundLimit=3?WinLimit=2?TimeLimit=0?FFKi llLimit=6?FFDamageLimit=800?VACSecure=true?game=RO Engine.ROTeamGame?-log=ServerLog.log
echo %GameText%
echo.
echo This is the %GameText% Auto Runner
echo To Restart the server close the corresponding Game
echo To Shut down the server close this window.
echo.
set LogFile="%homepath%\Desktop\Logs\%GameText%.log"
echo Output is logged to %LogFile%
echo.
echo This is the command line: >>%LogFile%
echo %GameCmd% >>%LogFile%
:start
echo ReStarting %GameText%
date/t
time/t
echo ReStarting %GameText% >>%LogFile%
date/t >>%LogFile%
time/t >>%LogFile%
call %GameCmd%
goto start
__________________
RO AirAttack = 62.141.50.30:7757
RO Brezina 24/7 = 62.141.51.30:7757
http://www.airattack.co.uk
Reply With Quote
  #3  
Old 07-18-2006, 10:56 AM
ButchCassidy's Avatar
ButchCassidy ButchCassidy is online now
Moderator
 
Join Date: Feb 2006
Location: The Hole in the Wall
Posts: 2,130
Default

Create a folder on your desktop called Logs....that should be it.
This will create log files inside telling you when the server was last rebooted.

Punchy it won't start a second window for RO as RO is already a .bat file.

You can use this code to auto start any game server as long as you create a .bat file and point the code to the server start up file.
When you point it to a .exe like the CoD2 mp the bat file will start up first followed by the games consol window.
__________________

I'm on a vodka diet, I've lost 3 days so far.
Beta test rig: I7-920 overclocked to 3.5ghz, 6gb DDR3, ATI 4890 2gb, Realtec HD sound,Win 7 x64
Reply With Quote
  #4  
Old 07-18-2006, 11:05 AM
Punchy Punchy is offline
Senior Member
 
Join Date: Mar 2006
Posts: 115
Default

I created the folder m8, still the same error, it's win2003 server btw.
__________________
RO AirAttack = 62.141.50.30:7757
RO Brezina 24/7 = 62.141.51.30:7757
http://www.airattack.co.uk
Reply With Quote
  #5  
Old 07-19-2006, 02:12 PM
ButchCassidy's Avatar
ButchCassidy ButchCassidy is online now
Moderator
 
Join Date: Feb 2006
Location: The Hole in the Wall
Posts: 2,130
Default

Just a not to everyone who may use this as we have discovered with Punchy's installation to use this code YOU MUST ENSURE THAT RO SERVER FILES ARE ON THE SAME DRIVE AS YOUR .BAT FILE WITH THE AUTO START CODE INSIDE IF YOU WISH TO USE THE LOGGING THATS ALSO CODE INCLUDED.

In Punchy's instance the Logs files will not be recorded because he has the RO server files installed on a different drive to his .bat start up file preventing the lof files being created.
This is not a problem if you are not bothered about the logging side which simply records when the server was last rebooted.
Simply remove this side of the code.
__________________

I'm on a vodka diet, I've lost 3 days so far.
Beta test rig: I7-920 overclocked to 3.5ghz, 6gb DDR3, ATI 4890 2gb, Realtec HD sound,Win 7 x64
Reply With Quote
  #6  
Old 02-13-2007, 05:42 PM
PrivateJazz PrivateJazz is offline
Member
 
Join Date: Mar 2006
Location: London
Posts: 69
Default

Hi guys, this auto restart code is very helpful.

Just one thing I've noticed though, is that upon restart it overwrites the main server log in the system folder, so you can't see why it has fallen over. Is there a way of making it add to this file or back it up or am I missing something simple?
__________________

[FONT=Arial]www.splatclan.org.uk[/FONT]
Reply With Quote
  #7  
Old 02-14-2007, 05:39 AM
Denon Denon is offline
Junior Member
 
Join Date: Aug 2006
Posts: 27
Default

Hi,

check out this program which is free service guard software. It allows you to ensure your server is running when windows is started even if you have not logged in. Servers are also restarted on crash.

http://www.jafit.com/portal/desktops...ice_guard.aspx

regards,
Denon
Reply With Quote
  #8  
Old 06-03-2012, 06:15 PM
®omano's Avatar
®omano ®omano is offline
Senior Member
 
Join Date: May 2009
Location: France
Posts: 284
Default

Thank you, old post but really helpfull today
__________________
Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 05:45 PM.


Powered by vBulletin®
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.
Copyright ©2005 - 2013, Tripwire Interactive, LLC