MyBB Internal: One or more warnings occurred. Please contact your administrator for assistance.
MyBB Internal: One or more warnings occurred. Please contact your administrator for assistance.
MyBB Internal: One or more warnings occurred. Please contact your administrator for assistance.
MyBB Internal: One or more warnings occurred. Please contact your administrator for assistance.
MyBB Internal: One or more warnings occurred. Please contact your administrator for assistance.
MyBB Internal: One or more warnings occurred. Please contact your administrator for assistance.
MyBB Internal: One or more warnings occurred. Please contact your administrator for assistance.
MyBB Internal: One or more warnings occurred. Please contact your administrator for assistance.
MyBB Internal: One or more warnings occurred. Please contact your administrator for assistance.
MyBB Internal: One or more warnings occurred. Please contact your administrator for assistance.
MyBB Internal: One or more warnings occurred. Please contact your administrator for assistance.
MyBB Internal: One or more warnings occurred. Please contact your administrator for assistance.
MyBB Internal: One or more warnings occurred. Please contact your administrator for assistance.
MyBB Internal: One or more warnings occurred. Please contact your administrator for assistance.
MyBB Internal: One or more warnings occurred. Please contact your administrator for assistance.
MyBB Internal: One or more warnings occurred. Please contact your administrator for assistance.
MyBB Internal: One or more warnings occurred. Please contact your administrator for assistance.
MyBB Internal: One or more warnings occurred. Please contact your administrator for assistance.
MyBB Internal: One or more warnings occurred. Please contact your administrator for assistance.
MyBB Internal: One or more warnings occurred. Please contact your administrator for assistance.
MyBB Internal: One or more warnings occurred. Please contact your administrator for assistance.
MyBB Internal: One or more warnings occurred. Please contact your administrator for assistance.
MyBB Internal: One or more warnings occurred. Please contact your administrator for assistance.
MyBB Internal: One or more warnings occurred. Please contact your administrator for assistance.
MyBB Internal: One or more warnings occurred. Please contact your administrator for assistance.
MyBB Internal: One or more warnings occurred. Please contact your administrator for assistance.
MyBB Internal: One or more warnings occurred. Please contact your administrator for assistance.
MyBB Internal: One or more warnings occurred. Please contact your administrator for assistance.
MyBB Internal: One or more warnings occurred. Please contact your administrator for assistance.
MyBB Internal: One or more warnings occurred. Please contact your administrator for assistance.
MyBB Internal: One or more warnings occurred. Please contact your administrator for assistance.
MyBB Internal: One or more warnings occurred. Please contact your administrator for assistance.
MyBB Internal: One or more warnings occurred. Please contact your administrator for assistance.
MyBB Internal: One or more warnings occurred. Please contact your administrator for assistance.
MyBB Internal: One or more warnings occurred. Please contact your administrator for assistance.
MyBB Internal: One or more warnings occurred. Please contact your administrator for assistance.
MyBB Internal: One or more warnings occurred. Please contact your administrator for assistance.
MyBB Internal: One or more warnings occurred. Please contact your administrator for assistance.
MyBB Internal: One or more warnings occurred. Please contact your administrator for assistance.
MyBB Internal: One or more warnings occurred. Please contact your administrator for assistance.
MyBB Internal: One or more warnings occurred. Please contact your administrator for assistance.
MyBB Internal: One or more warnings occurred. Please contact your administrator for assistance.
MyBB Internal: One or more warnings occurred. Please contact your administrator for assistance.
MyBB Internal: One or more warnings occurred. Please contact your administrator for assistance.
MyBB Internal: One or more warnings occurred. Please contact your administrator for assistance.
MyBB Internal: One or more warnings occurred. Please contact your administrator for assistance.
MyBB Internal: One or more warnings occurred. Please contact your administrator for assistance.
MyBB Internal: One or more warnings occurred. Please contact your administrator for assistance.
MyBB Internal: One or more warnings occurred. Please contact your administrator for assistance.
MyBB Internal: One or more warnings occurred. Please contact your administrator for assistance.
MyBB Internal: One or more warnings occurred. Please contact your administrator for assistance.
MyBB Internal: One or more warnings occurred. Please contact your administrator for assistance.
MyBB Internal: One or more warnings occurred. Please contact your administrator for assistance.
MyBB Internal: One or more warnings occurred. Please contact your administrator for assistance.
MyBB Internal: One or more warnings occurred. Please contact your administrator for assistance.
MyBB Internal: One or more warnings occurred. Please contact your administrator for assistance.
MyBB Internal: One or more warnings occurred. Please contact your administrator for assistance.
MyBB Internal: One or more warnings occurred. Please contact your administrator for assistance.
MyBB Internal: One or more warnings occurred. Please contact your administrator for assistance.
MyBB Internal: One or more warnings occurred. Please contact your administrator for assistance.
MyBB Internal: One or more warnings occurred. Please contact your administrator for assistance.
MyBB Internal: One or more warnings occurred. Please contact your administrator for assistance.
MyBB Internal: One or more warnings occurred. Please contact your administrator for assistance.
MyBB Internal: One or more warnings occurred. Please contact your administrator for assistance.
MyBB Internal: One or more warnings occurred. Please contact your administrator for assistance.
MyBB Internal: One or more warnings occurred. Please contact your administrator for assistance.
MyBB Internal: One or more warnings occurred. Please contact your administrator for assistance.
MyBB Internal: One or more warnings occurred. Please contact your administrator for assistance.
MyBB Internal: One or more warnings occurred. Please contact your administrator for assistance.
MyBB Internal: One or more warnings occurred. Please contact your administrator for assistance.
MyBB Internal: One or more warnings occurred. Please contact your administrator for assistance.
MyBB Internal: One or more warnings occurred. Please contact your administrator for assistance.
MyBB Internal: One or more warnings occurred. Please contact your administrator for assistance.
MyBB Internal: One or more warnings occurred. Please contact your administrator for assistance.
MyBB Internal: One or more warnings occurred. Please contact your administrator for assistance.
MyBB Internal: One or more warnings occurred. Please contact your administrator for assistance.
MyBB Internal: One or more warnings occurred. Please contact your administrator for assistance.
MyBB Internal: One or more warnings occurred. Please contact your administrator for assistance.
MyBB Internal: One or more warnings occurred. Please contact your administrator for assistance.
MyBB Internal: One or more warnings occurred. Please contact your administrator for assistance.
MyBB Internal: One or more warnings occurred. Please contact your administrator for assistance.
MyBB Internal: One or more warnings occurred. Please contact your administrator for assistance.
MyBB Internal: One or more warnings occurred. Please contact your administrator for assistance.
MyBB Internal: One or more warnings occurred. Please contact your administrator for assistance.
MyBB Internal: One or more warnings occurred. Please contact your administrator for assistance.
MyBB Internal: One or more warnings occurred. Please contact your administrator for assistance.
MyBB Internal: One or more warnings occurred. Please contact your administrator for assistance.
MyBB Internal: One or more warnings occurred. Please contact your administrator for assistance.
MyBB Internal: One or more warnings occurred. Please contact your administrator for assistance.
MyBB Internal: One or more warnings occurred. Please contact your administrator for assistance.
MyBB Internal: One or more warnings occurred. Please contact your administrator for assistance.
MyBB Internal: One or more warnings occurred. Please contact your administrator for assistance.
MyBB Internal: One or more warnings occurred. Please contact your administrator for assistance.
MyBB Internal: One or more warnings occurred. Please contact your administrator for assistance.
MyBB Internal: One or more warnings occurred. Please contact your administrator for assistance.
MyBB Internal: One or more warnings occurred. Please contact your administrator for assistance.
MyBB Internal: One or more warnings occurred. Please contact your administrator for assistance.
MyBB Internal: One or more warnings occurred. Please contact your administrator for assistance.
MyBB Internal: One or more warnings occurred. Please contact your administrator for assistance.
MyBB Internal: One or more warnings occurred. Please contact your administrator for assistance.
MyBB Internal: One or more warnings occurred. Please contact your administrator for assistance.
MyBB Internal: One or more warnings occurred. Please contact your administrator for assistance.
MyBB Internal: One or more warnings occurred. Please contact your administrator for assistance.
MyBB Internal: One or more warnings occurred. Please contact your administrator for assistance.
MyBB Internal: One or more warnings occurred. Please contact your administrator for assistance.
MyBB Internal: One or more warnings occurred. Please contact your administrator for assistance.
MyBB Internal: One or more warnings occurred. Please contact your administrator for assistance.
MyBB Internal: One or more warnings occurred. Please contact your administrator for assistance.
MyBB Internal: One or more warnings occurred. Please contact your administrator for assistance.
Startup script
Startup script
Posts: 117
Threads: 27
Joined: Apr 2008
Reputation:
0
How do i make a startup script that starts the server using LD_PRELOAD=lib ./srcds_run and sets it to high priority which i think is 19 and sets it to a certain core?
Posts: 1,033
Threads: 13
Joined: Oct 2008
Reputation:
11
.pidfile and cronjob for renice and affinity, but i dont remeber how to do all of that
http://www.opengamepanel.org/news.php is a control panel that has those options, really easy to install too.
Posts: 117
Threads: 27
Joined: Apr 2008
Reputation:
0
03-22-2009, 12:42 PM
(This post was last modified: 03-22-2009, 12:42 PM by Ryan .)
okay so i need to right a cronjob that re-executes the idler file because that like stops after about an hr.. i just assumed the idler was on an infinite loop and figure out stuff about this pid file and it renice the servers alright man im starting to get the hang of this. thank you
Posts: 108
Threads: 11
Joined: Apr 2005
Reputation:
4
03-22-2009, 01:00 PM
(This post was last modified: 03-22-2009, 11:49 PM by DiSTANT .)
Ryan Wrote: How do i make a startup script that starts the server using LD_PRELOAD=lib ./srcds_run and sets it to high priority which i think is 19 and sets it to a certain core?
First create a startup.sh file. This will contain all the server arguments etc.
Code:
LD_PRELOAD=./libsource.so ./srcds_run -console -game cstrike +ip xxx +map de_season +maxplayers 12 -tickrate 100 +fps_max 0 -pidfile /path/to/pidfile.pid
Then create a run.sh (Note: This will run in on CPU #2)
Code:
#!/bin/sh
screen -A -m -d -S nameofscreen ./startup.sh
sleep 5
taskset -pc 2 `cat /path/to/pidfile.pid`
Be sure to mark the two scripts a executable, and I think you should be good to go
Code:
chmod +x startup.sh
chmod +x run.sh
Posts: 10
Threads: 0
Joined: Mar 2009
Reputation:
0
what about a stop script?
Posts: 108
Threads: 11
Joined: Apr 2005
Reputation:
4
c400 Wrote: what about a stop script?
In that case you would want to kill the screen and then delete the pidfile
Code:
#!/bin/sh
kill -9 `ps -ef | grep SCREEN | grep "nameofscreen" | grep -v grep | awk '{ print $2}'`
rm -rf /path/to/pidfile.pid
Posts: 117
Threads: 27
Joined: Apr 2008
Reputation:
0
03-25-2009, 04:19 PM
(This post was last modified: 03-25-2009, 04:29 PM by Ryan .)
is there a way to set the pid in the pidfile? Like if i want all my css servers to start with 4 is there a way to set that? I guess iim confused on what this pidfile is. i have ./srcds_run -game blah blah -pidfile srcds.pid but there is no file srcds.pid am i supposed to create this file and put in a command to make it run at the process id 4000 or does it just randomly assign the pid?
!# ./run.sh
cat: /home/700/srcds.pid: No such file or directory
pid 2's current affinity list: 0-3
Posts: 108
Threads: 11
Joined: Apr 2005
Reputation:
4
Ryan Wrote: is there a way to set the pid in the pidfile? Like if i want all my css servers to start with 4 is there a way to set that? I guess iim confused on what this pidfile is. i have ./srcds_run -game blah blah -pidfile srcds.pid but there is no file srcds.pid am i supposed to create this file and put in a command to make it run at the process id 4000 or does it just randomly assign the pid?
!# ./run.sh
cat: /home/700/srcds.pid: No such file or directory
pid 2's current affinity list: 0-3
Be sure to use the full path to the pidfile when using the -pidfile flag. In your case, it would look like this.
Code:
-pidfile /home/700/srcds.pid
Posts: 117
Threads: 27
Joined: Apr 2008
Reputation:
0
is there way to integrate this into swiftpanel cuz when i rcon quit it just opens another server using the next port...
Posts: 147
Threads: 15
Joined: Nov 2008
Reputation:
0
Ryan Wrote: is there way to integrate this into swiftpanel cuz when i rcon quit it just opens another server using the next port...
Thats because your not suppost to rcon quit when using swiftpanel.
Posts: 117
Threads: 27
Joined: Apr 2008
Reputation:
0
hehe
not me customers lol
Posts: 117
Threads: 27
Joined: Apr 2008
Reputation:
0
Users browsing this thread: 1 Guest(s)