From owner-freebsd-questions@freebsd.org Sat Aug 20 11:02:36 2016 Return-Path: Delivered-To: freebsd-questions@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 5CCE8BBA322 for ; Sat, 20 Aug 2016 11:02:36 +0000 (UTC) (envelope-from matthew@FreeBSD.org) Received: from smtp.infracaninophile.co.uk (unknown [IPv6:2001:8b0:151:1:c4ea:bd49:619b:6cb3]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "smtp.infracaninophile.co.uk", Issuer "infracaninophile.co.uk" (not verified)) by mx1.freebsd.org (Postfix) with ESMTPS id E56061609 for ; Sat, 20 Aug 2016 11:02:35 +0000 (UTC) (envelope-from matthew@FreeBSD.org) Received: from liminal.local (liminal.infracaninophile.co.uk [IPv6:2001:8b0:151:1:3636:3bff:fed4:b0d6]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) (Authenticated sender: m.seaman@infracaninophile.co.uk) by smtp.infracaninophile.co.uk (Postfix) with ESMTPSA id E2E48E376 for ; Sat, 20 Aug 2016 11:02:32 +0000 (UTC) Authentication-Results: smtp.infracaninophile.co.uk; dmarc=none header.from=FreeBSD.org Authentication-Results: smtp.infracaninophile.co.uk/E2E48E376; dkim=none; dkim-atps=neutral Subject: Re: jail -r does not remove a jail To: freebsd-questions@freebsd.org References: From: Matthew Seaman Message-ID: Date: Sat, 20 Aug 2016 12:02:32 +0100 User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.11; rv:45.0) Gecko/20100101 Thunderbird/45.2.0 MIME-Version: 1.0 In-Reply-To: Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="DiRFcCs469dH2u4Iahs1uehIrFa3vcrv7" X-Spam-Status: No, score=-1.2 required=5.0 tests=BAYES_00,SPF_SOFTFAIL autolearn=no autolearn_force=no version=3.4.1 X-Spam-Checker-Version: SpamAssassin 3.4.1 (2015-04-28) on smtp.infracaninophile.co.uk X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.22 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 20 Aug 2016 11:02:36 -0000 This is an OpenPGP/MIME signed message (RFC 4880 and 3156) --DiRFcCs469dH2u4Iahs1uehIrFa3vcrv7 Content-Type: multipart/mixed; boundary="47eXkoIebA7Fts6TXgEiE9drCdb7WD2IA" From: Matthew Seaman To: freebsd-questions@freebsd.org Message-ID: Subject: Re: jail -r does not remove a jail References: In-Reply-To: --47eXkoIebA7Fts6TXgEiE9drCdb7WD2IA Content-Type: text/plain; charset=windows-1252 Content-Transfer-Encoding: quoted-printable On 20/08/2016 09:36, David Demelier wrote: > I had a jail that can not be removed after a poudriere jailure: >=20 > # jls > JID IP Address Hostname Path > 50 127.0.0.1 desktop-103-amd64-default-job > /poudriere/data/.m/desktop-103-amd64-default/03 > # jail -r 50 > 50: removed > # jls > JID IP Address Hostname Path > 50 127.0.0.1 desktop-103-amd64-default-job > /poudriere/data/.m/desktop-103-amd64-default/03 >=20 > Why does it say removed and it's not? What can I do without rebooting > to kill this jail? Do you have a stuck process still within that jail? Try: % ps -J 50 -ax If you have such processes, killing them should allow the jail to shut do= wn. Failing that, does 'poudriere status' show anything still running? Can you use 'poudriere jail -j jailname -k' to shut it down? Cheers, Matthew --47eXkoIebA7Fts6TXgEiE9drCdb7WD2IA-- --DiRFcCs469dH2u4Iahs1uehIrFa3vcrv7 Content-Type: application/pgp-signature; name="signature.asc" Content-Description: OpenPGP digital signature Content-Disposition: attachment; filename="signature.asc" -----BEGIN PGP SIGNATURE----- iQJ8BAEBCgBmBQJXuDjIXxSAAAAAAC4AKGlzc3Vlci1mcHJAbm90YXRpb25zLm9w ZW5wZ3AuZmlmdGhob3JzZW1hbi5uZXQ2NTNBNjhCOTEzQTRFNkNGM0UxRTEzMjZC QjIzQUY1MThFMUE0MDEzAAoJELsjr1GOGkATtOAP/iVD00VII+UTi2ZNFB5WdjY2 P/FHnxhMj0VjwBIuFGr7ivYbycqAPYdMt+5/8anXHqwKajXwTqOC9GAC13UxV608 0x8qTTvpmym/CaYiskVxU9/wW5KnNiRTGtFeALSJe5IQx1FaceXIkaux7WH41q4f BXGF1sX1U/Aq1akZIWzzUlas6QLZ1Cv1xOwfadr8LcGWB2ZdlfYqtUzqTbnIrroo RHznERKGETR9WZEd5UFggy4cJ33ueQrYPGhVzmISFc9+8EMVzC8roZNNA6Eya2R5 Dr+0VH1mXUxsVMXdO8Hhb7Gu+kn0M0KPmPKObdVY3s1Palo9GDCXYrgw0PU3/x3G pnKnQjfqJ6CU+HzWPyO6b6C4XpwLb+r6MZjOR9Lx0+Nr4Lewi6jBjkdI8zCq3hF+ 6+6/PuaSQVgllF3wZrx19oJ47qo6TiBehErn1Qbby3xW/1oFtSBCooeO1hoheQ3z yalQmS8+XlXXZEbuIPn9T0ixwwAfJFKk63WQz1DY9ZY7s5B5AdFipJZEIaVmKEa6 0QnINN1dcJFihwP1fW+0Xc+gj8bmaLKOGVutUZ3thZ9o7+ac+e1WN2pOEHHopVzM sHfbyJifBMZ3WhAqFVGeUwkb5Jvo51blpzZ1bTX1UeHRuBueje1fv6z/HBvWnnfO AR13RErKwyUYZJpn3O5N =QPkT -----END PGP SIGNATURE----- --DiRFcCs469dH2u4Iahs1uehIrFa3vcrv7--