Date: Fri, 07 Nov 2014 09:47:15 +0200 From: =?utf-8?B?0JHQvtGA0LjRgQ==?= <borius@i.ua> To: freebsd-jail@freebsd.org Subject: fails exec.postsop after shutdown jail. Message-ID: <E1XmeGJ-0002V2-MN@st14.mi6.kiev.ua>
next in thread | raw e-mail | index | archive | help
Hi, i use FreeBSD 10.1-RC4. When i shutdown jail (jexec /bin/sh /etc/rc.shudown) exec.poststop doesn't work and 1st string in my jail.conf (mount = "....) doesn't automatically unmounted, but in "man jails" say's that mount will unmount after removing jails. my jail.conf: mount = "/usr/ports /jails/$name/usr/ports nullfs ro 0 0 "; exec.start = "/bin/sh /etc/rc"; exec.stop = "/bin/sh /etc/rc.shutdown"; mount.devfs; exec.clean; allow.mount; vnet = new; path = "/jails/$name"; allow.raw_sockets; testjail1 { exec.prestart += "ifconfig epair0 create"; exec.prestart += "ifconfig bridge0 addm epair0a"; exec.prestart += "ifconfig epair0a up"; vnet.interface = "epair0b"; exec.start += "ifconfig epair0b 192.168.1.150/24"; exec.start += "route add default 192.168.1.254"; exec.poststop = "ifconfig epair0a destroy"; } Or am I doing something wrong? -- реклама ----------------------------------------------------------- Крутые телефоны! Низкие цены! Покупай тут! http://aukro.ua/?utm_source=i.ua&utm_medium=advert
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?E1XmeGJ-0002V2-MN>