From owner-freebsd-questions@FreeBSD.ORG Mon May 7 17:36:01 2007 Return-Path: X-Original-To: freebsd-questions@freebsd.org Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id C815816A400 for ; Mon, 7 May 2007 17:36:01 +0000 (UTC) (envelope-from d.hill@yournetplus.com) Received: from duane.dbq.yournetplus.com (duane.dbq.yournetplus.com [65.124.230.214]) by mx1.freebsd.org (Postfix) with ESMTP id A86FB13C447 for ; Mon, 7 May 2007 17:36:01 +0000 (UTC) (envelope-from d.hill@yournetplus.com) Received: from duane.dbq.yournetplus.com (duane.dbq.yournetplus.com [192.168.1.10]) by duane.dbq.yournetplus.com (Postfix) with ESMTP id E9BE928F85F for ; Mon, 7 May 2007 17:36:00 +0000 (UTC) Date: Mon, 7 May 2007 17:36:00 +0000 (UTC) From: Duane Hill X-X-Sender: d.hill@duane.dbq.yournetplus.com To: freebsd-questions@freebsd.org In-Reply-To: <20070507131532.aacecc86.wmoran@potentialtech.com> Message-ID: <20070507173024.A46658@duane.dbq.yournetplus.com> References: <20070507155948.O32045@duane.dbq.yournetplus.com> <20070507131532.aacecc86.wmoran@potentialtech.com> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII; format=flowed Subject: Re: Question about stopping jails... X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 07 May 2007 17:36:01 -0000 On Mon, 7 May 2007, Bill Moran wrote: > In response to Duane Hill : > >> >> I have a FreeBSD server running 6.2 that has two jails configured. As they >> currently sit, they work perfectly fine. The only issue I currently have >> is stopping them using the conventional method: >> >> /etc/rc.d/jail stop jail_name >> >> It seems the jails do not stop even though the id files within: >> >> /var/run/jail_jail_name.id >> >> cease to exist after the stop. 'jls' even shows the two jails as still >> running. They both are running BIND and do have sshd enabled. After the >> stop has been issued, you can not ssh into the jails which gives the >> illusion the jails have stopped. However, you can still access the jails >> from the server running them using: >> >> jexec jail_id /bin/sh >> >> Can someone give me some insight on what I might be doing wrong? > > What processes are still running inside the jail when you do that? In my > experience, jails fail to stop of there are processes inside them that don't > stop. That does make sense. I'll have to check that out the next time I get an opportunity to stop the jail(s) and do a 'ps' to look for processes that have a 'J' (jail indication) in the STAT column. I should have thought of this. Thanks for the reminder.