From 253658a81d11e1bbf22c9b82a55f40431e7985b9 Mon Sep 17 00:00:00 2001 From: cryx Date: Tue, 16 Mar 2010 23:48:18 +0000 Subject: Run the cpuset and zfs attach routine when doing start, startcrypto and restart. Reported by Jesse Kempf. --- ezjail.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ezjail.sh b/ezjail.sh index a9716e3..5a8ccd4 100755 --- a/ezjail.sh +++ b/ezjail.sh @@ -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 -- cgit v1.2.3