From owner-freebsd-questions@FreeBSD.ORG Mon May 7 16:32:55 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 149E616A401 for ; Mon, 7 May 2007 16:32:55 +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 EA7D113C44B for ; Mon, 7 May 2007 16:32:54 +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 1C75D28F85F for ; Mon, 7 May 2007 16:32:54 +0000 (UTC) Date: Mon, 7 May 2007 16:32:54 +0000 (UTC) From: Duane Hill X-X-Sender: d.hill@duane.dbq.yournetplus.com To: freebsd-questions@freebsd.org Message-ID: <20070507155948.O32045@duane.dbq.yournetplus.com> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII; format=flowed Subject: 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 16:32:55 -0000 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? 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"