ezjail+startup sequence
Добавлено: 2010-04-18 18:52:08
добрый день.
можно ли в ezjail управлять последовательностью загрузки джайлов?
можно ли в ezjail управлять последовательностью загрузки джайлов?
Не так страшен танк, как его пьяный экипаж
https://forum.lissyara.su/
After creating the Jail you can start it with the ezjail.sh script. However, if you enabled ezjail in rc.conf, all Jails in ezjails scope are being brought up on next system start up.
Код: Выделить всё
cat /usr/local/etc/rc.d/ezjail.sh
...
# If a jail list is given on command line, process it
# If not, fetch it from our config directory
if [ "$*" ]; then
ezjail_list=`echo -n $* | tr -c '[:alnum:] ' '_'`
unset ezjail_fromrc
else
[ "${ezjail_stop}" ] && reverse_command="tail -r" || reverse_command="cat"
[ -d "${ezjail_cfgs}" ] && cd "${ezjail_cfgs}" && ezjail_list=`ls | xargs rcorder | ${reverse_command}`
echo -n "${message##_}"
fi
...
Код: Выделить всё
# To specify the start up order of your ezjails, use these lines to
# create a Jail dependency tree. See rcorder(8) for more details.
#
# PROVIDE: standard_ezjail
# REQUIRE:
# BEFORE:
#