From owner-freebsd-questions@FreeBSD.ORG Mon May 7 17:15:34 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 0955916A402 for ; Mon, 7 May 2007 17:15:34 +0000 (UTC) (envelope-from wmoran@potentialtech.com) Received: from mail.potentialtech.com (internet.potentialtech.com [66.167.251.6]) by mx1.freebsd.org (Postfix) with ESMTP id D0ED913C46A for ; Mon, 7 May 2007 17:15:33 +0000 (UTC) (envelope-from wmoran@potentialtech.com) Received: from vanquish.pgh.priv.collaborativefusion.com (pr40.pitbpa0.pub.collaborativefusion.com [206.210.89.202]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by mail.potentialtech.com (Postfix) with ESMTP id ED8A1EBC78; Mon, 7 May 2007 13:15:32 -0400 (EDT) Date: Mon, 7 May 2007 13:15:32 -0400 From: Bill Moran To: Duane Hill Message-Id: <20070507131532.aacecc86.wmoran@potentialtech.com> In-Reply-To: <20070507155948.O32045@duane.dbq.yournetplus.com> References: <20070507155948.O32045@duane.dbq.yournetplus.com> X-Mailer: Sylpheed 2.3.1 (GTK+ 2.10.11; i386-portbld-freebsd6.1) Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Cc: freebsd-questions@freebsd.org 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:15:34 -0000 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. > > Below is the jail config part in the mail server rc.conf and the contents > of the rc.conf in the two jails. > > Main server jail portion /etc/rc.conf: > > jail_enable="YES" > jail_list="jail_1 jail_2" > jail_set_hostname_allow="NO" > > jail_ns1_ynp_rootdir="/home/hoosegow/jail_1" > jail_ns1_ynp_hostname="jail1.example.com" > jail_ns1_ynp_ip="192.168.1.50" > jail_ns1_ynp_devfs_enable="YES" > > jail_dns2_ndu_rootdir="/home/hoosegow/jail_2" > jail_dns2_ndu_hostname="jail2.example.com" > jail_dns2_ndu_ip="192.168.1.51" > jail_dns2_ndu_devfs_enable="YES" > > jail_1 /etc/rc.conf: > > defaultrouter="192.168.1.1" > hostname="jail1.example.com" > ifconfig_rl0="inet 192.168.1.50 netmask 255.255.255.0" > > named_enable="YES" > named_flags="-c /etc/namedb/named.conf" > named_chrootdir="" > syslogd_flags="-ss" > sshd_enable="YES" > > jail_2 /etc/rc.conf: > > defaultrouter="192.168.1.1" > hostname="jail2.example.com" > ifconfig_rl0="inet 192.168.1.51 netmask 255.255.255.0" > > named_enable="YES" > named_flags="-c /etc/namedb/named.conf" > named_chrootdir="" > syslogd_flags="-ss" > sshd_enable="YES" > _______________________________________________ > freebsd-questions@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-questions > To unsubscribe, send any mail to "freebsd-questions-unsubscribe@freebsd.org" -- Bill Moran http://www.potentialtech.com