Posts: 504
Threads: 9
Joined: Oct 2009
Reputation:
3
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.
Posts: 779
Threads: 5
Joined: Apr 2008
Reputation:
9
Look for the pids of the servers:
ps -ef|grep srcds
Then terminate them:
kill -9 <PID>
Quick and dirty ...
Posts: 26
Threads: 4
Joined: Jul 2010
Reputation:
0
anyone can help me how can run screen
what's command to run server.sh
ty
Posts: 64
Threads: 2
Joined: Jul 2010
Reputation:
0
07-06-2010, 06:06 AM
(This post was last modified: 07-06-2010, 06:08 AM by BjornR1989.)
(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
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)
Posts: 26
Threads: 4
Joined: Jul 2010
Reputation:
0
07-07-2010, 11:35 PM
(This post was last modified: 07-07-2010, 11:35 PM by last night.)
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
Posts: 64
Threads: 2
Joined: Jul 2010
Reputation:
0
07-08-2010, 12:25 AM
(This post was last modified: 07-08-2010, 09:18 AM by BjornR1989.)
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)
Posts: 15
Threads: 2
Joined: Jul 2010
Reputation:
0
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.
Posts: 26
Threads: 4
Joined: Jul 2010
Reputation:
0
07-11-2010, 11:43 PM
(This post was last modified: 07-11-2010, 11:43 PM by last night.)
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
Posts: 779
Threads: 5
Joined: Apr 2008
Reputation:
9
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