summaryrefslogtreecommitdiff
path: root/ezjail.sh
diff options
context:
space:
mode:
authorcryx <cryx@h3q.com>2010-03-16 23:48:18 +0000
committercryx <cryx@h3q.com>2010-03-16 23:48:18 +0000
commit253658a81d11e1bbf22c9b82a55f40431e7985b9 (patch)
tree260aec156287d0280d87d224f064837cc1458b5e /ezjail.sh
parent1f0f731722abe99bef9f1777fb7056f1f803adf8 (diff)
Run the cpuset and zfs attach routine when doing start, startcrypto and restart.
Reported by Jesse Kempf.
Diffstat (limited to 'ezjail.sh')
-rwxr-xr-xezjail.sh2
1 files changed, 1 insertions, 1 deletions
diff --git a/ezjail.sh b/ezjail.sh
index a9716e3..5a8ccd4 100755
--- a/ezjail.sh
+++ b/ezjail.sh
@@ -104,7 +104,7 @@ do_cmd()
104 [ "${ezjail_pass}" ] && sh /etc/rc.d/jail one${action%crypto} ${ezjail_pass} 104 [ "${ezjail_pass}" ] && sh /etc/rc.d/jail one${action%crypto} ${ezjail_pass}
105 105
106 # Configure settings that need to be done after the jail has been started 106 # Configure settings that need to be done after the jail has been started
107 if [ "${action}" = "start" ]; then 107 if [ "${action%crypto}" = "start" -o "${action}" = "restart" ]; then
108 for ezjail in ${ezjail_list}; do 108 for ezjail in ${ezjail_list}; do
109 ezjail_safename=`echo -n "${ezjail}" | tr -c '[:alnum:]' _` 109 ezjail_safename=`echo -n "${ezjail}" | tr -c '[:alnum:]' _`
110 # Get the JID of the jail 110 # Get the JID of the jail