Run the cpuset and zfs attach routine when doing start, startcrypto and restart.

Reported by Jesse Kempf.
This commit is contained in:
cryx 2010-03-16 23:48:18 +00:00
parent 1f0f731722
commit 253658a81d

View File

@ -104,7 +104,7 @@ do_cmd()
[ "${ezjail_pass}" ] && sh /etc/rc.d/jail one${action%crypto} ${ezjail_pass}
# Configure settings that need to be done after the jail has been started
if [ "${action}" = "start" ]; then
if [ "${action%crypto}" = "start" -o "${action}" = "restart" ]; then
for ezjail in ${ezjail_list}; do
ezjail_safename=`echo -n "${ezjail}" | tr -c '[:alnum:]' _`
# Get the JID of the jail