start: Support cpuset

This commit is contained in:
tschettervictor
2025-05-03 16:12:19 -06:00
committed by GitHub
parent 11a4cd8e33
commit d94b76579b

View File

@@ -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
done