From d94b76579b1ce8e357abda57eb2ebeba7661574c Mon Sep 17 00:00:00 2001 From: tschettervictor <85497460+tschettervictor@users.noreply.github.com> Date: Sat, 3 May 2025 16:12:19 -0600 Subject: [PATCH] start: Support cpuset --- usr/local/share/bastille/start.sh | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/usr/local/share/bastille/start.sh b/usr/local/share/bastille/start.sh index 0389e370..9170ffd3 100644 --- a/usr/local/share/bastille/start.sh +++ b/usr/local/share/bastille/start.sh @@ -191,6 +191,13 @@ for _jail in ${JAILS}; do done < "${bastille_jailsdir}/${_jail}/rctl.conf" fi + # Add cpuset limits + if [ -s "${bastille_jailsdir}/${_jail}/cpuset.conf" ]; then + while read _limits; do + cpuset -l "${_limits}" -j "${_jail}" + done < "${bastille_jailsdir}/${_jail}/cpuset.conf" + fi + # Add rdr rules if [ -s "${bastille_jailsdir}/${_jail}/rdr.conf" ]; then while read _rules; do @@ -201,4 +208,4 @@ for _jail in ${JAILS}; do # Delay between jail action sleep "${DELAY_TIME}" -done \ No newline at end of file +done