Jump to content

Photo
- - - - -

Auto-restart standaloneserver when hang-up


  • Please log in to reply
58 replies to this topic
Thread Starter
Gugus
Gugus

    Private

  • Members
  • 10 posts

  • Joined: 12-February 2002

Posted 16 March 2002 - 13:25 #1

Hi!
I have a standalone server (1.49 beta).
How to configure it for auto-restart when it crash.
Exemple: some player upload MPmissions that required special add-on, and when they try to play with on my server : it crash.
I'm looking for an extra tools or standalone server config for do a auto-restart.

How could I do that ?

Thanks

Kegetys
Kegetys

    Warrant Officer

  • Members
  • 2752 posts

  • Joined: 01-July 2001

Posted 16 March 2002 - 14:02 #2

do a server.bat like this:

:start
start /W ofp_server.exe
goto start

and run it. It will run the server on an infinite loop, every time it crashes it goes to back to start and re runs it. Also, dont run the server in Win9x, instead use WinNT based OS (w2k,xp) and disable the "program has generated errors blaa blaa" dialog from dr watson to make that work correctly.
Posted Image

Espectro
Espectro

    Evil m00-c0w

  • Members
  • 3404 posts

  • Joined: 18-October 2001

Posted 16 March 2002 - 16:24 #3

Wouldnt that start multiple server exes?

or is that what the /W prevents?
http://www.footballpredictor.eu - sports betting made easy!
\"A man without religion, is like a fish without a bicycle\"

Thread Starter
Gugus
Gugus

    Private

  • Members
  • 10 posts

  • Joined: 12-February 2002

Posted 16 March 2002 - 17:28 #4

It's works ! Without extra utility...
Thansk a lot !

Kegetys
Kegetys

    Warrant Officer

  • Members
  • 2752 posts

  • Joined: 01-July 2001

Posted 16 March 2002 - 17:33 #5

</span><table border="0" align="center" width="95%" cellpadding="3" cellspacing="1"><tr><td>Quote (Espectro @ Mar. 16 2002,18:24)</td></tr><tr><td id="QUOTE">Wouldnt that start multiple server exes?

or is that what the /W prevents?[/QUOTE]<span id='postcolor'>
/W = WAIT: Start application and wait for it to terminate
Posted Image

BigQEd
BigQEd

    Gunnery Sergeant

  • Members
  • 418 posts

  • Joined: 26-October 2001

Posted 16 March 2002 - 18:45 #6

Get FireDaemon... which will allow you to set as a Service. Then you can even specify priority of OFP on the system.

Running Basic Batch files went out with DOS!  Posted Image




Visit Our Servers Today!
Website/Forums = www.fraghaus.com
OFP Server = ofpserver.fraghaus.com
ArmA Server = armaserver.fraghaus.com

Kegetys
Kegetys

    Warrant Officer

  • Members
  • 2752 posts

  • Joined: 01-July 2001

Posted 16 March 2002 - 18:58 #7

</span><table border="0" align="center" width="95%" cellpadding="3" cellspacing="1"><tr><td>Quote (BigQEd @ Mar. 16 2002,20:45)</td></tr><tr><td id="QUOTE">Get FireDaemon... which will allow you to set as a Service. Then you can even specify priority of OFP on the system.

Running Basic Batch files went out with DOS!  Posted Image[/QUOTE]<span id='postcolor'>
Bad thing in running the server as service is that you cannot see the console window anymore... And you can set priorities with start too (start /high ofpserver.exe etc.)

Nothing wrong in batch files Posted Image
Posted Image

Espectro
Espectro

    Evil m00-c0w

  • Members
  • 3404 posts

  • Joined: 18-October 2001

Posted 16 March 2002 - 22:42 #8

Cool, i didnt even knew that.
http://www.footballpredictor.eu - sports betting made easy!
\"A man without religion, is like a fish without a bicycle\"

BigQEd
BigQEd

    Gunnery Sergeant

  • Members
  • 418 posts

  • Joined: 26-October 2001

Posted 17 March 2002 - 07:42 #9

Sure... however I know for a fact running them in the FOREGround is not as effecient as running them in the BACKGround.

Now... if you would stop and think about what server runs the fastest with the most players maybe you would understand that maybe running OFP as a Service isn't such a bad idea. Posted Image

Also who needs CONSOLE when running as a Dedicated Server? Do you sit and monitor a Dedicated server via PCA/VNC/RA? Or maybe you have the Dedicated Server running on your home system which in that case what would it matter...




Visit Our Servers Today!
Website/Forums = www.fraghaus.com
OFP Server = ofpserver.fraghaus.com
ArmA Server = armaserver.fraghaus.com

marik
marik

    Private

  • Members
  • 8 posts

  • Joined: 13-January 2002

Posted 17 March 2002 - 10:06 #10

BigQed,

Can you explain for us what happens when the dedicated server program abends or is shutdown from inside the application if it is run as a service with FireDaemon? When I shut down the server with #shutdown, my service still shows started. No OFP server restarts for me automagically either.

Isnt the actual program that is defined to be run the FireDaemon shell, and isnt it (the shell) only it that can benefit from the recovery options available in 2000/XP?

What is missing?

BigQEd
BigQEd

    Gunnery Sergeant

  • Members
  • 418 posts

  • Joined: 26-October 2001

Posted 17 March 2002 - 19:28 #11

No. Try this set your service to automatically reset in the properties of that service. Then shut it down and it will restart on it's own. If it doesn't you didn't do something right.

BTW, all settings for services can be found in the following Registry key (you can go in and manually set these settings):

HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\
Visit Our Servers Today!
Website/Forums = www.fraghaus.com
OFP Server = ofpserver.fraghaus.com
ArmA Server = armaserver.fraghaus.com

Lt_Damage
Lt_Damage

    Master Gunnery Sergeant

  • Members
  • 1007 posts

  • Joined: 24-January 2002

Posted 20 March 2002 - 03:55 #12

</span><table border="0" align="center" width="95%" cellpadding="3" cellspacing="1"><tr><td>Quote (BigQEd @ Mar. 17 2002,18:42)</td></tr><tr><td id="QUOTE">Sure... however I know for a fact running them in the FOREGround is not as effecient as running them in the BACKGround.

Now... if you would stop and think about what server runs the fastest with the most players maybe you would understand that maybe running OFP as a Service isn't such a bad idea. Posted Image[/QUOTE]<span id='postcolor'>
Oh man, does the phrase "blowing your own horn" mean anything to you?

I think your concerns at the moment would be why your server has such a bad reputation in the OFP community, not how fast / how many players it can hold.

nuff said.

Also, running ofp as a higher than normal priority can create issues. Instead of editing the registry like a cowboy, I suggest doing what Kegetys posted.





BigQEd
BigQEd

    Gunnery Sergeant

  • Members
  • 418 posts

  • Joined: 26-October 2001

Posted 22 March 2002 - 00:54 #13

LOL @ Lt_Damage

I think maybe someone is a bit jealous  Posted Image

It's cool man. I know where we stand. I know we have 1000's that play on our OFP servers daily. So our rep must not be to shabby Posted Image

As far as Editing the Reg... it's not to hard and it is nothing extreme or cowboyish. Runing programs as Services is the way W2K and XP Pro should be operated.

I mean when was the last time you saw Mail, Web and FTP Servers run on the desktop? Hmmm... they are Servers and run as Services.




Visit Our Servers Today!
Website/Forums = www.fraghaus.com
OFP Server = ofpserver.fraghaus.com
ArmA Server = armaserver.fraghaus.com

Lt_Damage
Lt_Damage

    Master Gunnery Sergeant

  • Members
  • 1007 posts

  • Joined: 24-January 2002

Posted 22 March 2002 - 02:55 #14

Yes.. I am very jealous................ Posted Image

I thought i'd show a few of the players some Fraghaus maps for some variety.. and I was almost laughed off the server... I had to promise I'd remove them and never play them again. Posted Image

But this is quite beneath me, lets quit now.

In regards to the server issue, I simply advise the user to follow Kegetys's method as
1) It does not require any third party software running.
2) It does not require editing the registry
2) It works and is simple.

Increasing the priority of a process can create issues, do this with caution.

Regards,

BigQEd
BigQEd

    Gunnery Sergeant

  • Members
  • 418 posts

  • Joined: 26-October 2001

Posted 22 March 2002 - 14:48 #15

Lt_Damage... what missions?? And are they up to date??

FragHaus has some awesome newer missions... (some are meant to be funny)

Where else can you fly Squadrons of Cessnas with 30mm Machine Guns (CTF Plane Frenzy) or be a Redneck from Deliverance (CTF Deliverance) civilians with shotguns on Tractors? heh Posted Image

We also have Serious COOP and CTF Missions. Such as Rescue Col Randolph, Ultimate Extraction, CTF Hunt, CTF AllOutWar and many more...

Truly hard to believe people wouldn't like them since we are packed almost 24/7 and people rave about our missions. (Current Favorites are Plane Frenzy and CTF Hunt 2) They will actually play Plane Frenzy like 5 times in a row... and still beg for more.




Visit Our Servers Today!
Website/Forums = www.fraghaus.com
OFP Server = ofpserver.fraghaus.com
ArmA Server = armaserver.fraghaus.com

Lt_Damage
Lt_Damage

    Master Gunnery Sergeant

  • Members
  • 1007 posts

  • Joined: 24-January 2002

Posted 24 March 2002 - 01:41 #16

They sound very fun, the ones we tried were AllOutWar (crashes with 1.49, working on a fix) and Jeeps (crashes with 1.49)
And BigWar with 64players i think.. and also "High Noon" which we never played again...

Congratulations on creating fresh mp gaming maps for the ofp community, regards,

BigQEd
BigQEd

    Gunnery Sergeant

  • Members
  • 418 posts

  • Joined: 26-October 2001

Posted 25 March 2002 - 17:47 #17

ALLOUTWAR has no problem with 1.49. We switched to 1.49 on the server as soon as it was released. We play ALLOUTWAR daily... and have yet to have a crash.
Visit Our Servers Today!
Website/Forums = www.fraghaus.com
OFP Server = ofpserver.fraghaus.com
ArmA Server = armaserver.fraghaus.com

Kegetys
Kegetys

    Warrant Officer

  • Members
  • 2752 posts

  • Joined: 01-July 2001

Posted 03 April 2002 - 12:23 #18

Well im sure "my way" of doing it doesnt suit everyone. Running as service is fine too, though you cannot see the console (I'd rather watch the console than a blank windows desktop). The advantage of running as a service is that you dont have to logon to the system.

Btw. you can change the process priority from the batch file too by adding /LOW, /NORMAL, /HIGH or /REALTIME parameter to the start command. I wouldnt suggest using realtime though as it doesnt leave any cpu cycles to any other process if the server eats 100% cpu.
Posted Image

BigQEd
BigQEd

    Gunnery Sergeant

  • Members
  • 418 posts

  • Joined: 26-October 2001

Posted 03 April 2002 - 23:19 #19

You are correct Keg...

I am sure those that log on to their servers might like the Batch file idea. Posted Image I simply prefer to run as a Service because all our Servers are in our NOC and not systems we utilize as Desktop systems.

Yes using RealTime is a very bad... do NOT do not use RealTime. If you utilize the system for anything other than OFP I wouldn't even use HIGH... unless you are running a server with less than 10 slots. If you do you will find your system unusable.
Visit Our Servers Today!
Website/Forums = www.fraghaus.com
OFP Server = ofpserver.fraghaus.com
ArmA Server = armaserver.fraghaus.com

uteboy
uteboy

    Rookie

  • Members
  • 7 posts

  • Joined: 24-July 2001

Posted 04 April 2002 - 21:56 #20

hey BigQEd - exactly why is it more effecient to run them in the background?