SRCDS Steam group


problem with Screen
#1
hello everybody


i got a problem with run screen for css server
because when i close my secureCRT or putty server shutting down
i heard about screen will solve this problem, i already installed screen
and create sh file (( server.sh)) and i made this command into server.sh

Code:
#!/bin/sh
echo "Starting Cs:Source Server"
sleep 1
screen -A -m -d -S css-server ./srcds_run -console -game cstrike  +ip 212.71.35.84 -port 27017 -tickrate 100 +fps_max 600 +maxplayers 32 +map de_dust2 -autoupdate

when i try to enter screen x- css-server

it says : There is no screen to be attached matching srcds_awp_scout.

Note: this is my path to css server folder

" /home/csuser/srcds_awp_scout/orangebox "


please help me and thank you
Reply
#2
Most likely your server crashes inside the screen. That is why the screentab gets terminated. Either start screen with the additional parameter -L to get a screenlog and see whats crashing the server or start it without screenand see whats going on.
Anywhy -tickrate is depricated and not used anymore. If you use the tickrate hacker maybe that is your problem.
Interactive web based config creator for CS, CSS, TF2 and DODS
Creates server and client configs in an explained dialog.

You`ll also find precompiled debian gameserver kernels for download
Reply
#3
(07-05-2010, 05:50 PM)Terrorkarotte Wrote:  Most likely your server crashes inside the screen. That is why the screentab gets terminated. Either start screen with the additional parameter -L to get a screenlog and see whats crashing the server or start it without screenand see whats going on.
Anywhy -tickrate is depricated and not used anymore. If you use the tickrate hacker maybe that is your problem.
thak you i will test that now

nvm about tickrate i forgot to make it -66 i don't use tickrate enable addons

i got other problem now i found there's 4 server are running now Sad
i don't konw how but i am sure when i try to run server by screen

i try to close it by sm_rcon quit and exit but doesn't help

sorry for trouble you i am still Newbie to deal with Linux
Reply
#4
Look for the pids of the servers:
ps -ef|grep srcds
Then terminate them:
kill -9 <PID>

Quick and dirty ...
Reply
#5
(07-05-2010, 07:14 PM)Arjen Wrote:  Look for the pids of the servers:
ps -ef|grep srcds
Then terminate them:
kill -9 <PID>

Quick and dirty ...

^
thank you u r lighted my mind to right way

i used this

Code:
ps aux

because this command show my what's PID mean, as i told you before i ma noob in Linux , started used it before 2 days ago

i killed all of them thank you

Regards
last night
Reply
#6
anyone can help me how can run screen

what's command to run server.sh

ty
Reply
#7
no one can help you like when try to help you self

thanks all Big Grin i finish my problem

1-save command screen in server.sh
2- put it in your file server
3- give to server.sh permission execute
4-use command "Screen" to run server
5-use "Screen --help" to display all commands

please srcds.com Management Edit some explain at " Running srcds in background (re-attachable) "
to make your Tutorials more perfect
Big Grin
Reply
#8
(okay, AFTER i posted this the previous post appeared; Must've been cached. In any case, i will not delete this message afterwards.)


Code:
#!/bin/sh
echo "Starting Cs:Source Server"
sleep 1
cd /home/username/srcds/orangebox
screen -A -m -d -S css-server ./srcds_run -console -game cstrike  +ip 212.71.35.84 -port 27017 -tickrate 100 +fps_max 600 +maxplayers 32 +map de_dust2 -autoupdate
sleep 10

I've added
Code:
cd /home/username/srcds/orangebox

and
Code:
sleep 10

as a variation on your initial script.

As said before, use the following command to attach the screen:
Code:
screen -x css-server

Then press ctrl+A+D to detach it again.
Steam username for communication: root_admin (but i'm just a regular user)
Reply
#9
(07-06-2010, 06:06 AM)BjornR1989 Wrote:  (okay, AFTER i posted this the previous post appeared; Must've been cached. In any case, i will not delete this message afterwards.)


Code:
#!/bin/sh
echo "Starting Cs:Source Server"
sleep 1
cd /home/username/srcds/orangebox
screen -A -m -d -S css-server ./srcds_run -console -game cstrike  +ip 212.71.35.84 -port 27017 -tickrate 100 +fps_max 600 +maxplayers 32 +map de_dust2 -autoupdate
sleep 10

I've added
Code:
cd /home/username/srcds/orangebox

and
Code:
sleep 10

as a variation on your initial script.

As said before, use the following command to attach the screen:
Code:
screen -x css-server

Then press ctrl+A+D to detach it again.

thank you so much love srcds.com " we Help You To Become A Professional "
Reply
#10
one more questions about screen

can i run let's say : 10 games servers by screen if yes how can do that ? and thank you
Reply
#11
Each user can run an application in a screen.
Each screen is accessed by its handle.

f.e.
Code:
screen -A -m -d -S myserverloads top
can be accessed with
Code:
screen -x myserverloads
Just change the name "myserverloads" to "someprocess" or whatever your heart desires.

As long as the application allows to have more than one instance. It's possible to run multiple game hosts on one server but i don't recommend it.
Steam username for communication: root_admin (but i'm just a regular user)
Reply
#12
last night,

You can run multiple servers off one machine (I am going to currently run 2 and see how it holds up and then maybe add two more).

You just need to make sure you have a good processor and a lot of memory.
Reply
#13
BjornR1989
I apologize for bothering you
but, When I try to run server.sh tell me /bin/sh^M: bad interpreter: No such file or directory
thank you for helping me in time of need
Reply
#14
Did you upload the script using FTP from Windows to Linux? Apparently if a shell script gets opened and saved in notepad it will not run anymore.

#!/bin/sh

MUST be at the very top of the page and it's best to have a carriage return after it.
There CANNOT be a empty line ABOVE #!/bin/sh or you will get this error.

Maybe you should take a look at dos2unix
Reply
#15
(07-12-2010, 12:13 AM)Arjen Wrote:  Did you upload the script using FTP from Windows to Linux? Apparently if a shell script gets opened and saved in notepad it will not run anymore.

#!/bin/sh

MUST be at the very top of the page and it's best to have a carriage return after it.
There CANNOT be a empty line ABOVE #!/bin/sh or you will get this error.

Maybe you should take a look at dos2unix
please tell me what' command for debain to create and edit and save

thnak you
Reply


Forum Jump:


Users browsing this thread: 4 Guest(s)