diff options
author | saite <sg2342@googlemail.com> | 2013-03-28 18:51:14 +0000 |
---|---|---|
committer | saite <sg2342@googlemail.com> | 2013-03-28 18:51:14 +0000 |
commit | cfb55eaf01dd78136af783f81e9eb48cde7c5db8 (patch) | |
tree | 789b2898fe236f0de3c4e43633df1d0e120c600c /ezjail.sh | |
parent | 0bbd3a754990df15ffa89d56fc9754d79fd5c545 (diff) |
Introduce _post_start_script.
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 | ||