SRCDS Steam group


Stopping Server
#1
I have used Linux for about 3 days now. I have my server up and running. The problem is I cant stop it without using another program like WHM. How do I stop the server via the SSH? I have trying different things like killserver and it kills it and then automatically restarts in 10 seconds.

Also, is there anybody out there who is familiar with APF (firewall) and has gotten it to work with srcds? I cannot run both at the same time even though I opened up the required ports.

Thanks for your help.

Tracer
CS:Source 66.194.153.223:27015
Natural Selection 66.194.153.223:27016
Reply
#2
To kill the server use ctrl-c.

As far as your firewall I don't know.

Eino
Reply
#3
I fixed the firewall problem. I didnt open enough ports.

I have another question. I use putty to connec via SSH and when I start the srcds all of the console stuff is shown in putty while it is running. Sometimes I loose connection with Putty or I close the Putty window. The server is still running but now I dont know how to get back to the console screen. Can someone please tell how to?

Tracer
CS:Source 66.194.153.223:27015
Natural Selection 66.194.153.223:27016
Reply
#4
Tracer Round

I got the same problem .. how can i see console after putty loose connection ...


Help me guys !

Reply
#5
The answer to your question is two-fold... First I will tell you how to stop this problem from happening in the future.

You should have an app called "screen" installed on your system. If you dont, talk to the admin and have it installed (or do it yourself if you are the admin). Screen lets you do everything you normally would on the server, just you do it in a "screen" that can be detached and reattached later. So instead of leaving putty running so you dont "lose" your current working environment, you log in, open up your "screen", do your thing, detach, log out.

Assuming screen is installed, SSH into your box and type "screen". If all went well it should look just like your normal shell prompt. Start up your server. hit CTRL - A - D. This will detach your screen. Log out of the box.

To go back to that screen, SSH back into the box and type "screen -r".


To kill an already running process, type "pgrep <process name>" to get the PID. Then type "Kill <PID HERE>"

Hope this helps.
Reply
#6
I tried screen before and it kept giving me the unknown cmd so I wasnt sure I was doing it correctly. Now I see it is not installed with Linux so I will install it and try this out. Thank you very much rappo.

BTW Ctrl + C works great with the gameserver (while the console is showing).

Tracer
CS:Source 66.194.153.223:27015
Natural Selection 66.194.153.223:27016
Reply
#7
If you got unknown command then screen is not installed.

Installing screen depends on what distro you have...

If it's Fedora (any version) type
Code:
yum install screen
at the console. If it's any other RPM based system (mandrake, suse etc) type

Code:
rpm -i ftp://rpmfind.net/linux/conectiva/snapshot/i386/RPMS.extra/screen-4.0.2-67442cl.i386.rpm
at the console.

If it's debian, type
Code:
apt get screen

That should work...
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)