From owner-freebsd-bugs@FreeBSD.ORG Wed May 3 19:40:38 2006 Return-Path: X-Original-To: freebsd-bugs@hub.freebsd.org Delivered-To: freebsd-bugs@hub.freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 4EBF116A411 for ; Wed, 3 May 2006 19:40:38 +0000 (UTC) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [216.136.204.21]) by mx1.FreeBSD.org (Postfix) with ESMTP id 76FAB43D90 for ; Wed, 3 May 2006 19:40:21 +0000 (GMT) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (gnats@localhost [127.0.0.1]) by freefall.freebsd.org (8.13.4/8.13.4) with ESMTP id k43JeHiO088589 for ; Wed, 3 May 2006 19:40:17 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.13.4/8.13.4/Submit) id k43JeHPC088585; Wed, 3 May 2006 19:40:17 GMT (envelope-from gnats) Resent-Date: Wed, 3 May 2006 19:40:17 GMT Resent-Message-Id: <200605031940.k43JeHPC088585@freefall.freebsd.org> Resent-From: FreeBSD-gnats-submit@FreeBSD.org (GNATS Filer) Resent-To: freebsd-bugs@FreeBSD.org Resent-Reply-To: FreeBSD-gnats-submit@FreeBSD.org, Gergely Czuczy Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id BAFAB16A400 for ; Wed, 3 May 2006 19:30:08 +0000 (UTC) (envelope-from nobody@FreeBSD.org) Received: from www.freebsd.org (www.freebsd.org [216.136.204.117]) by mx1.FreeBSD.org (Postfix) with ESMTP id 7BCA443D48 for ; Wed, 3 May 2006 19:30:08 +0000 (GMT) (envelope-from nobody@FreeBSD.org) Received: from www.freebsd.org (localhost [127.0.0.1]) by www.freebsd.org (8.13.1/8.13.1) with ESMTP id k43JU8eg078451 for ; Wed, 3 May 2006 19:30:08 GMT (envelope-from nobody@www.freebsd.org) Received: (from nobody@localhost) by www.freebsd.org (8.13.1/8.13.1/Submit) id k43JU8ec078450; Wed, 3 May 2006 19:30:08 GMT (envelope-from nobody) Message-Id: <200605031930.k43JU8ec078450@www.freebsd.org> Date: Wed, 3 May 2006 19:30:08 GMT From: Gergely Czuczy To: freebsd-gnats-submit@FreeBSD.org X-Send-Pr-Version: www-2.3 Cc: Subject: misc/96729: jails still in the system after stopping them X-BeenThere: freebsd-bugs@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Bug reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 03 May 2006 19:40:38 -0000 >Number: 96729 >Category: misc >Synopsis: jails still in the system after stopping them >Confidential: no >Severity: serious >Priority: medium >Responsible: freebsd-bugs >State: open >Quarter: >Keywords: >Date-Required: >Class: sw-bug >Submitter-Id: current-users >Arrival-Date: Wed May 03 19:40:17 GMT 2006 >Closed-Date: >Last-Modified: >Originator: Gergely Czuczy >Release: 6.0-RELEASE-p6 >Organization: Harmless Digital >Environment: FreeBSD trillian.harmless.hu 6.0-RELEASE-p6 FreeBSD 6.0-RELEASE-p6 #1: Mon Apr 10 20:09:00 CEST 2006 root@trillian.harmless.hu:/usr/obj/usr/src/sys/TRILLIAN i386 >Description: Jails keep on stucking in the system after stopping them. As i have experienced it mostly occurs when i leave something in the jail when stopping them. i use to start/stop jails the rc.d script. i go inside a running jail with ``jexec /usr/local/bin/bash'' (so, a standard shell), and when i'm in, i stop the jail. after i leave the shell i still can see the jail listed with jls. i was unable to find any utilities to purge these unused entries from the jail "registry". i have tried to put back it's id to /var/run/, and invoke the /etc/rc.d/jail/stop script again, but it had no effect on them. >How-To-Repeat: 1) start up a jail 2) using jexec, enter into it with a shell 3) stop the jail 4) leave the jail with the jexec shell 5) check it with jls, the jail will be still around >Fix: >Release-Note: >Audit-Trail: >Unformatted: