diff options
Diffstat (limited to 'ezjail.sh')
-rwxr-xr-x | ezjail.sh | 4 |
1 files changed, 4 insertions, 0 deletions
@@ -112,6 +112,7 @@ do_cmd() | |||
112 | 112 | ||
113 | eval ezjail_zfs_datasets=\"\$jail_${ezjail_safename}_zfs_datasets\" | 113 | eval ezjail_zfs_datasets=\"\$jail_${ezjail_safename}_zfs_datasets\" |
114 | eval ezjail_cpuset=\"\$jail_${ezjail_safename}_cpuset\" | 114 | eval ezjail_cpuset=\"\$jail_${ezjail_safename}_cpuset\" |
115 | eval ezjail_post_start_script=\"\$jail_${ezjail_safename}_post_start_script\" | ||
115 | 116 | ||
116 | # Attach ZFS-datasets to the jail | 117 | # Attach ZFS-datasets to the jail |
117 | for zfs in ${ezjail_zfs_datasets}; do | 118 | for zfs in ${ezjail_zfs_datasets}; do |
@@ -120,6 +121,9 @@ do_cmd() | |||
120 | 121 | ||
121 | # Configure processor sets for the jail via cpuset(1) | 122 | # Configure processor sets for the jail via cpuset(1) |
122 | [ -z "${ezjail_cpuset}" ] || /usr/bin/cpuset -l ${ezjail_cpuset} -j ${ezjail_id} || echo -n "Error: The defined cpuset is malformed" | 123 | [ -z "${ezjail_cpuset}" ] || /usr/bin/cpuset -l ${ezjail_cpuset} -j ${ezjail_id} || echo -n "Error: The defined cpuset is malformed" |
124 | |||
125 | # Run post start script | ||
126 | [ -z "${ezjail_post_start_script}" ] || "${ezjail_post_start_script}" ${ezjail_id} "${ezjail}" || echo -n "Error: Post Start Script failed" | ||
123 | done | 127 | done |
124 | fi | 128 | fi |
125 | 129 | ||