From owner-freebsd-jail@freebsd.org Wed May 22 19:25:07 2019 Return-Path: Delivered-To: freebsd-jail@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 82E1D15B56AA for ; Wed, 22 May 2019 19:25:07 +0000 (UTC) (envelope-from foo.squiggly@yandex.com) Received: from forward500j.mail.yandex.net (forward500j.mail.yandex.net [IPv6:2a02:6b8:0:801:2::110]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id A6A3F949F7 for ; Wed, 22 May 2019 19:25:05 +0000 (UTC) (envelope-from foo.squiggly@yandex.com) Received: from mxback19j.mail.yandex.net (mxback19j.mail.yandex.net [IPv6:2a02:6b8:0:1619::95]) by forward500j.mail.yandex.net (Yandex) with ESMTP id 53B7111C1504; Wed, 22 May 2019 22:25:01 +0300 (MSK) Received: from localhost (localhost [::1]) by mxback19j.mail.yandex.net (nwsmtp/Yandex) with ESMTP id BnXSgCF2iK-P03WV8tM; Wed, 22 May 2019 22:25:00 +0300 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yandex.com; s=mail; t=1558553100; bh=/M2cXf0zIIC2sL8TshXokzZgo6WEUzijSGKRALGZt9M=; h=Message-Id:Cc:Subject:In-Reply-To:Date:References:To:From; b=HaWPPFJxa0nmT/9OpHo4oRA7FeaskjOeETD+bVhdHTMlZU+eXQKCbAlHu4LLoXWyC SJ5ACuCzECXIIQ8hQt68NET8pdNiyVQZ0Y/TyuFY1wx/f1peDF/qpgsf1l9SKZSKus Tlq6483GF64ibeeKeTHjnpa5N6NW+0xejC9qL3H0= Received: by myt1-cd60b8ae9bb9.qloud-c.yandex.net with HTTP; Wed, 22 May 2019 22:25:00 +0300 From: squiggly foo Envelope-From: foo-squiggly@yandex.com To: Stefan Bethke Cc: "freebsd-jail@freebsd.org" In-Reply-To: References: <22066461556647435@iva8-3b901672a9c5.qloud-c.yandex.net> Subject: Re: Application Jail Shutdown Problem MIME-Version: 1.0 X-Mailer: Yamail [ http://yandex.ru ] 5.0 Date: Thu, 23 May 2019 04:25:00 +0900 Message-Id: <13724321558553100@myt1-cd60b8ae9bb9.qloud-c.yandex.net> Content-Transfer-Encoding: 8bit Content-Type: text/plain; charset=utf-8 X-Rspamd-Queue-Id: A6A3F949F7 X-Spamd-Bar: ----- Authentication-Results: mx1.freebsd.org; dkim=pass header.d=yandex.com header.s=mail header.b=HaWPPFJx; dmarc=pass (policy=none) header.from=yandex.com; spf=pass (mx1.freebsd.org: domain of foo.squiggly@yandex.com designates 2a02:6b8:0:801:2::110 as permitted sender) smtp.mailfrom=foo.squiggly@yandex.com X-Spamd-Result: default: False [-5.80 / 15.00]; ARC_NA(0.00)[]; TO_DN_EQ_ADDR_SOME(0.00)[]; R_DKIM_ALLOW(-0.20)[yandex.com:s=mail]; NEURAL_HAM_MEDIUM(-1.00)[-1.000,0]; FROM_HAS_DN(0.00)[]; TO_DN_SOME(0.00)[]; R_SPF_ALLOW(-0.20)[+ip6:2a02:6b8:0::/52]; FREEMAIL_FROM(0.00)[yandex.com]; MIME_GOOD(-0.10)[text/plain]; RCVD_TLS_LAST(0.00)[]; NEURAL_HAM_LONG(-1.00)[-1.000,0]; RCVD_COUNT_THREE(0.00)[4]; TO_MATCH_ENVRCPT_SOME(0.00)[]; DKIM_TRACE(0.00)[yandex.com:+]; MX_GOOD(-0.01)[mx.yandex.ru,mx.yandex.ru,mx.yandex.ru,mx.yandex.ru,mx.yandex.ru]; RCPT_COUNT_TWO(0.00)[2]; NEURAL_HAM_SHORT(-0.96)[-0.964,0]; DMARC_POLICY_ALLOW(-0.50)[yandex.com,none]; IP_SCORE(-1.72)[ipnet: 2a02:6b8::/32(-4.78), asn: 13238(-3.83), country: RU(0.01)]; RCVD_IN_DNSWL_LOW(-0.10)[0.1.1.0.0.0.0.0.0.0.0.0.2.0.0.0.1.0.8.0.0.0.0.0.8.b.6.0.2.0.a.2.list.dnswl.org : 127.0.5.1]; FROM_EQ_ENVFROM(0.00)[]; FREEMAIL_ENVFROM(0.00)[yandex.com]; ASN(0.00)[asn:13238, ipnet:2a02:6b8::/32, country:RU]; MIME_TRACE(0.00)[0:+] X-BeenThere: freebsd-jail@freebsd.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: "Discussion about FreeBSD jail\(8\)" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 22 May 2019 19:25:07 -0000 Hi Stefan, Thanks for the suggestion. I thought about just leaving the jail there but it drives me nuts when I run the mount command on the host and I see all these mounts from jails when I just want to see the host mounts. -foo 07.05.2019, 06:10, "Stefan Bethke" : > Am 30.04.2019 um 20:03 schrieb squiggly foo : >>  I use the mount.fstab parameter to mount a number of file systems before starting a jail which works without any problem. However since it is an application jail, there are no other processes running inside the jail other than the one application. As soon as that application terminates the jail is removed by the host. > > Would keeping the jail around be an alternative? > > With the persist parameter, the jail doesn’t go away when the last process exits, and starting the same (or another) process with the same jail name will reuse the existing jail. > > Only when you really want to get rid of the jail you destroy it explicitly, including unmounting the file systems. > > Stefan > > -- > Stefan Bethke Fon +49 151 14070811