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