Code/File/Utlity to auto restart unreal server

The place to chat about mods and other Unreal related stuff :-)
Post Reply
BassPwr
Posts: 33
https://www.facebook.com/warszawa.kuchnie.na.wymiar/
Joined: Thu Apr 08, 2004 5:03 am
Location: England, UK

Code/File/Utlity to auto restart unreal server

Post by BassPwr »

Hi,

I know game server hosting companies have a feature in place that auto starts an unreal server again if it goes down for some reason.

I was wondering if this code/file/utility is freely known/available so that home server users can make use of it?

does anyone know how to go about doing this?

thanks
User avatar
}TCP{Carnage
Posts: 4597
Joined: Thu Dec 19, 2002 5:22 pm
Location: Nightbar Rooie Ooren
Contact:

Post by }TCP{Carnage »

The simplest thing would be to make a .Bat file and start the server from there

this is how our MM server's .Bat file looks for example

Code: Select all

:start
E:\Unreal\System_MM\Unreal.exe DMLabyrinth.unr?game=UTeamFix.DeathMatchGameFix port=8888 -server
goto start
Patience Is A Virtue
Anger Is A Gift

Unreal 1 - 32 slot 227h- }TCP{ Funhouse #6 [MonsterMash !!][url=unreal://95.170.68.21:8218]-:: Go There ::-[/url]
Unreal 1 - 8 slot 227f - }TCP{ Funhouse #7 [TeamArenaMaster !!] [url=unreal://tcpclan.nl:8888]-:: Go There ::-[/url]
UT2004 - 12 slot }TCP{ Funhouse #1 [TAM / Freezetag] !! [url=ut2004://95.170.68.21:8318]-:: Go There ::-[/url]
UT2004 - 32 slot }TCP{ Funhouse #2 [Freon Madness] !! [url=ut2004://95.170.68.21:9118]-:: Go There ::-[/url]
UT2004 - 2/4 slot }TCP{ Funhouse #3 [1vs1 or 2 vs 2] !! [url=ut2004://tcpclan.nl:7777]-:: Go There ::-[/url]
UT2004 - 12 slot }TCP{ Funhouse #4 [ONS/TAM/AM/Moso 12p] !! [url=ut2004://85.17.208.88:7777]-:: Go There ::-[/url]
UT2004 - 8 slot }TCP{FunHouse #5 [TAM/1on1-DM] !! [url=ut2004://46.228.201.243:7777]-:: Go There ::-[/url]




Open Source Beer
The }TCP{ Website
BassPwr
Posts: 33
Joined: Thu Apr 08, 2004 5:03 am
Location: England, UK

Post by BassPwr »

thanks carn, I was thinking it might be done with a bat file, but I think that's just a normal start server bat which I know how to do, what I mean is, if the server crashes/goes down while out of the house/away from server machine, it needs to be told to restart itself and was hoping there is a way to do it easily.
BassPwr
Posts: 33
Joined: Thu Apr 08, 2004 5:03 am
Location: England, UK

Post by BassPwr »

SoulReaver posted an excellent detailed guide on how to do it over at hyper forums

http://www.unrealdestination.com/client ... 882202f690
User avatar
}TCP{Wolf
Site Admin
Posts: 4663
Joined: Thu Dec 19, 2002 7:30 pm
Location: https://signal.me/#eu/4zInut2kHeg_ry0GD ... pdqka17o2F
Contact:

Post by }TCP{Wolf »

And what did he tell you Carnage hadn't already told you? What SoulReaver calls "loop" Carnage called "start"... big deal. The solutions are virtually identical, so what makes SoulReaver's batch file an "out of the ordinary" startfile while Carnage's is just a "normal server start bat" if they both do exactly the same...?

Maybe I am missing something here... just wondering... :shock:
-=]I AM GETTING TOO OLD FOR SUBTLETY[=-

mail: chaos.worx[at]gmx.net
IRC Quakenet +OTR: }TCP{Wolf @#oldunreal @#tcp.clan
Jabber/XMPP +OTR: Wolfy359@jabber.org
Threema: CR6Y9YSS
Signal: see profile
ICQ: dead since russian takeover disables OTR
Hyper
Posts: 811
Joined: Sun Jul 13, 2003 1:40 am
Location: 127.0.0.1
Contact:

Post by Hyper »

If you want a somewhat more advanced batch file which renames and saves the logfile, check my site. ("Lab" page.)
Alter your reality...Forever.

http://www.hypercoop.tk
[url]unreal://hypercoop.tk[/url]
BassPwr
Posts: 33
Joined: Thu Apr 08, 2004 5:03 am
Location: England, UK

Post by BassPwr »

Appears I have stepped on a few toes, apologies. You're missing something wolf, and that is my lack of knowledge that start and loop do the same thing in a bat file for an unreal server. Seeing start I just thought was a solution to start a server and not recover it after a crash. I've used simple bat files before to start servers, but can now tell you it was just a simple one, and didn't feature anything extra like start/loop lines.

so thank you carnie.

I was looking to use the code to support a couple of home run servers including a small inf one for xtc since the rented one is going to run out.

news: http://www.createforum.com/xtcforum/vie ... m=xtcforum
discussion: http://www.createforum.com/xtcforum/vie ... m=xtcforum

I respect the help and knowledge others give back to the unreal community, it's all appreciated.

1 person who I talked to about it was not going to help me with this and provide the info for free.

2 sides to every coin.

I don't know soulreaver, but I thought it was a gem to come across such a guide.

the guide below also made interesting reading, but not suitable for xp I think.

http://theadminpage.planetunreal.gamesp ... chFile.htm

I will definitely check that out hype, thanks. I love your site, excellent stuff.
User avatar
}TCP{Wolf
Site Admin
Posts: 4663
Joined: Thu Dec 19, 2002 7:30 pm
Location: https://signal.me/#eu/4zInut2kHeg_ry0GD ... pdqka17o2F
Contact:

Post by }TCP{Wolf »

A very handy tool to rename log files is DATELOG. After that, the logfile will just have the name of the current timestamp, so everything is even sorted correctly.
-=]I AM GETTING TOO OLD FOR SUBTLETY[=-

mail: chaos.worx[at]gmx.net
IRC Quakenet +OTR: }TCP{Wolf @#oldunreal @#tcp.clan
Jabber/XMPP +OTR: Wolfy359@jabber.org
Threema: CR6Y9YSS
Signal: see profile
ICQ: dead since russian takeover disables OTR
Post Reply