SRCDS Steam group


How to restart source server remotely
#1
Is there anyway this can be done without being the one at the console for the server? I need to be able to restart my server whenever it gets messed up, but to date i'm still unable to do so. Any helpful hints suggestions or plugins would be most appreciated. This is a source server just to reitterate.

T.c.
Reply
#2
You can use client side srcds console eith RCON and and run rcon restart i believe.
[Image: userbar_wow.jpg]
starting 9/24/2006 if your problem has been solved please edit your first post and add [solved] to the begining of the title. Thanks.
Reply
#3
hmm when i try rcon restart, it does nothing... and when you say srcds do you mean just the regular console with rcon enabled correct?

It's annoying because whenever the server starts going awry, I have to go to irc to try to get a hold of my netadmin there to restart the server from the computer's themselves. There has got to be a better way.

T.c.
Reply
#4
Is the server linux or windows?
[Image: userbar_wow.jpg]
starting 9/24/2006 if your problem has been solved please edit your first post and add [solved] to the begining of the title. Thanks.
Reply
#5
I honestly don't know... i'd think it'd be linux though looking at the folder structure

T.c.
Reply
#6
ssh is what I would use, just type exit in the server console

you could also try HLSW. I don't have rcon enabled on my servers, so I don't know how well it works with source.
United Strike Marine Corps
USMC-CO| θ (theta)
Reply
#7
well then, if i type exit how do I restart it though through ssh? That's my main concern. You can type exit through console and it will shut the server down.

T.c.
Reply
#8
Veritas Wrote:well then, if i type exit how do I restart it though through ssh? That's my main concern. You can type exit through console and it will shut the server down.

T.c.

well, you said that you think you're using linux. Assuming that you're using the srcds_run, when you type exit in the server console, it'll shut the server down, wait 10 seconds, and then start it back up again.
United Strike Marine Corps
USMC-CO| θ (theta)
Reply
#9
ok I must of missed something, what's srds? Im a bit new to this here so enlighten me if you could. I've purchased a server from party a. Party a has control over updating the server. I have the username/password to upload to my ftp server for the server. I also have rcon capabilities. It's a counter-strike source server. So with what i've said do I fit what you said? Or is that some plugin thing that you mentioned earlier that I should install?

T.c.
Reply
#10
ah ok im slow. Figured out what you ment by srcds, thing is I don't think it's configured right to restart in 10 seconds like i've read it's supposed to do if you type quit or exit. What config would I need to edit to make sure that after it's exited, it will automatically restart itself in 10 seconds?

T.c.
Reply
#11
your host would have to setup some kinda of perl script or bash script to have crontab run (if this server is linux) that'll check the srcds process ID which is easy if -pidfile srcds.pid is added to the command line and running a `cat /home/userdir/srcds_l/cstrike/srcds.pid` if its not an active id, then have the server restart it.
[Image: userbar_wow.jpg]
starting 9/24/2006 if your problem has been solved please edit your first post and add [solved] to the begining of the title. Thanks.
Reply
#12
I see... hmm I may need to look into how to do this myself then. Cheers for the information though, it's much appreciated.
Reply
#13
Check out hldstart --> http://www.gamehound.net/~hldstart/
It's a free php control panel that allows you to start/stop servers from a webpage, as well as many other functions. It's free, and works well in Linux. Starting/stopping does not yet work under win32.
~Greg
Free game server control panel - opengamepanel.org
Reply
#14
Well what he is saying it when you ssh into the linux box, you will probably find that the game server is running under screen.

If it is and you have logged in as the user that started the server you can type:

screen -r

and the game consloe should show it's self. Then you can hit ctl-c to kill the server. You should have a file to start the server that you created when you did the origional install of CS:Source. Mine is simply called server. in the directory that the game is installed in (mine is /use/local/cssd_l} I would type ./server and away it goes. I have a file in my cssd_l directory that executes the game server. There are plenty of examples around of how to make your server start in the background using the "screen" command.

An example is:

screen -d -m ./srcds_run -game cstrike -port 27015 +ip your.ip.here +maxplayers 18 +map de_dust -autoupdate echo "Server Started"

Hope this helps you!



Veritas Wrote:ah ok im slow. Figured out what you ment by srcds, thing is I don't think it's configured right to restart in 10 seconds like i've read it's supposed to do if you type quit or exit. What config would I need to edit to make sure that after it's exited, it will automatically restart itself in 10 seconds?

T.c.
Meatpuppet

-How can you be in two places at once, when your not anywhere at all?
Reply
#15
Ask your admin to add the script i put in tutorials, it is so very very simple, and after its added, an rcon quit will restart the server.
Reply


Forum Jump:


Users browsing this thread: 6 Guest(s)