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
Command line options using server.sh
-
- A regular
- Posts: 42
- https://www.youtube.com/channel/UC40BgXanDqOYoVCYFDSTfHA
- Joined: Mon Jan 16, 2012 10:58 am
- Location: Mullica Hill, New Jersey
- Contact:
Re: Command line options using server.sh
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:
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:
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
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
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"