Date: Mon, 7 May 2007 17:36:00 +0000 (UTC) From: Duane Hill <d.hill@yournetplus.com> To: freebsd-questions@freebsd.org Subject: Re: Question about stopping jails... Message-ID: <20070507173024.A46658@duane.dbq.yournetplus.com> In-Reply-To: <20070507131532.aacecc86.wmoran@potentialtech.com> References: <20070507155948.O32045@duane.dbq.yournetplus.com> <20070507131532.aacecc86.wmoran@potentialtech.com>
next in thread | previous in thread | raw e-mail | index | archive | help
On Mon, 7 May 2007, Bill Moran wrote: > In response to Duane Hill <d.hill@yournetplus.com>: > >> >> 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.
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20070507173024.A46658>