Merge pull request #1036 from BastilleBSD/tschettervictor-patch-2

fix limits cpuset rewriting entire fiel
This commit is contained in:
tschettervictor
2025-05-09 11:46:08 -06:00
committed by GitHub

View File

@@ -121,7 +121,7 @@ add_cpuset() {
local _cpuset_rule="$(echo ${_cpus} | sed 's/ /,/g')"
# Persist cpuset value
echo "${_cpuset_rule}" > "${bastille_jailsdir}/${_jail}/cpuset.conf"
echo "${_cpuset_rule}" >> "${bastille_jailsdir}/${_jail}/cpuset.conf"
echo -e "Limits: ${OPTION} ${VALUE}"
# Restart jail to apply cpuset