From owner-freebsd-jail@FreeBSD.ORG Fri Nov 7 07:47:26 2014 Return-Path: Delivered-To: freebsd-jail@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id 7CB2F67F for ; Fri, 7 Nov 2014 07:47:26 +0000 (UTC) Received: from st14.mi6.kiev.ua (st14.mi6.kiev.ua [91.198.36.66]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 36014867 for ; Fri, 7 Nov 2014 07:47:25 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=i.ua; s=mail; h=Message-Id:Content-Transfer-Encoding:Content-Type:MIME-Version:Date:From:Subject:To; bh=iBAHxh8Xh1W8rao2dTqseA5L4efQ3fM2hsfxTO//GMo=; b=X6kWVqLSukd7pQHhQrvsRdpiagxRzQEv4BliR443Ab/tT5OZw4b2+YaXrOQG0uZ6vHRkfQyGwcxEK2m6P2kxHYuMfKJ7gzaWGw/joelTXqXxjd651qjFj9P5wSj2BFXAjmxVrQ8h3iZHoduRL6+xPuFnZSOReikZuJDLsn40gCE=; Received: from web by st14.mi6.kiev.ua with local (Exim 4.80.1) (envelope-from ) id 1XmeGJ-0002V2-MN for freebsd-jail@freebsd.org; Fri, 07 Nov 2014 09:47:15 +0200 To: freebsd-jail@freebsd.org Subject: fails exec.postsop after shutdown jail. From: =?utf-8?B?0JHQvtGA0LjRgQ==?= Date: Fri, 07 Nov 2014 09:47:15 +0200 MIME-Version: 1.0 X-Mailer: I.UA Mail System X-Server: st14.mi6.kiev.ua X-Sender-IP: 82.207.63.170 X-User-Agent: Mozilla/5.0 (X11; FreeBSD amd64; rv:33.0) Gecko/20100101 Firefox/33.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit Message-Id: X-BeenThere: freebsd-jail@freebsd.org X-Mailman-Version: 2.1.18-1 Precedence: list List-Id: "Discussion about FreeBSD jail\(8\)" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 07 Nov 2014 07:47:26 -0000 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