mirror of
https://github.com/eliasstepanik/ark-ac-server-tools.git
synced 2026-01-24 07:28:27 +00:00
sudo not needed to set CPU affinity on our own processes
This commit is contained in:
parent
5405c642d9
commit
1a32ac0012
@ -1044,7 +1044,7 @@ doStart() {
|
|||||||
|
|
||||||
if [ -n "$arkCpuAffinity" ]; then
|
if [ -n "$arkCpuAffinity" ]; then
|
||||||
echo "Setting CPU affinity for ark server"
|
echo "Setting CPU affinity for ark server"
|
||||||
sudo taskset -c "$arkCpuAffinity" -p "$pid"
|
taskset -c "$arkCpuAffinity" -p "$pid"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
kill -CONT "$pid"
|
kill -CONT "$pid"
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user