03-21-2009, 05:16 AM
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?
Startup script
|
03-21-2009, 05:16 AM
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?
03-21-2009, 01:58 PM
.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.
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
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 Be sure to mark the two scripts a executable, and I think you should be good to go Code: chmod +x startup.sh
03-22-2009, 11:48 PM
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
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
03-25-2009, 10:02 PM
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? 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
03-30-2009, 09:18 AM
is there way to integrate this into swiftpanel cuz when i rcon quit it just opens another server using the next port...
03-30-2009, 09:25 AM
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.
03-30-2009, 10:06 AM
hehe not me customers lol
03-31-2009, 04:57 AM
problem solved.
|
« Next Oldest | Next Newest »
|