Forum

> > CS2D > Scripts > Auto-restart
Forums overviewCS2D overview Scripts overviewLog in to reply

English Auto-restart

6 replies
To the start Previous 1 Next To the start

old Auto-restart

Hanz
User Off Offline

Quote
I dunno why but sometimes the server shutdown by itself, or it attacked by a hacker (I believe it can't be easily attacked by a hacker because I've dedicated server with powerful connection and a massy of RAM)

I am little bit angry because of it, I don't want to check my server for ever, I want to take a rest, so I think 'Is there a way to auto-restart the server when the server shutdown?'

I already use searcher and I found one thread that talking about this problem and they suggest us (Not me but to someone else there, I don't do any conversation there) to create a .bat file with this code inside:

1
2
3
:loop
cs2d_dedicated.exe
goto loop

I try it and it work but I can't believe that 100% working without a answer from the expert here, so is that really working?

Thank you.

old Re: Auto-restart

EP
User Off Offline

Quote
Seems like an infinite loop that opens a dedicated server each frame. Maybe you should check each X seconds/minutes if cs2d_dedicated is opened and open it again if it's closed.

old Re: Auto-restart

Kisses
User Off Offline

Quote
user ohaz He mentioned cs2d_dedicated.exe and .bat file. Doesn't really sound linux for me.

That batch file should work fine.

old Re: Auto-restart

oxytamine
User Off Offline

Quote
You can easily do this with PHP if you got web-server running. Write me if you'll need this.

old Re: Auto-restart

Hanz
User Off Offline

Quote
user oxytamine has written
You can easily do this with PHP if you got web-server running. Write me if you'll need this.


I think that little tiny script already help me. Thank you for your offer but I don't need it now, once again thank you for your offer.
To the start Previous 1 Next To the start
Log in to reply Scripts overviewCS2D overviewForums overview