Command line options using server.sh

Ask questions about dedicated servers here and we and other users will do our best to answer them. Please also refer to the self-help section for tutorials and answers to the most commonly asked questions.
Post Reply
gamemann
A regular
A regular
Posts: 42
https://www.youtube.com/channel/UC40BgXanDqOYoVCYFDSTfHA
Joined: Mon Jan 16, 2012 10:58 am
Location: Mullica Hill, New Jersey
Contact:

Command line options using server.sh

Post by gamemann »

My current command line is run with a server.sh file. It contains the command line "screen -A -m -d -S ze-server ./ze_srv -console -game cstrike +map ze_echo_boatescape_extended +maxplayers 50 +port 27017 -debug"

Is there a way to integrate "chrt -r 20" into this command line, as in where would the placing go.

Thanks
Image
Image
User avatar
Edge100x
Founder
Founder
Posts: 13129
Joined: Thu Apr 18, 2002 11:04 pm
Location: Seattle
Contact:

Re: Command line options using server.sh

Post by Edge100x »

If you're running as root, you should just be able to add chrt before the server command. You'll need to use a positive value for it to be valid:

Code: Select all

screen -AmdS ze-server chrt -r 20 ./ze_srv -console -game cstrike +map ze_echo_boatescape_extended +maxplayers 50 +port 27017 -debug
However, it's best to run as non-root, in which case, you'll have to start "screen" under root and use "chrt" followed by "su", like this:

Code: Select all

screen -AmdS ze-server chrt -r 20 su -l username -c "./ze_srv -console -game cstrike +map ze_echo_boatescape_extended +maxplayers 50 +port 27017 -debug"
Potential problems with the latter setup, workarounds, and a tutorial are covered in this previous thread: http://www.nfoservers.com/forums/viewto ... =44&t=4988
Post Reply