From owner-cvs-src@FreeBSD.ORG Sun Aug 7 23:43:59 2005 Return-Path: X-Original-To: cvs-src@FreeBSD.org Delivered-To: cvs-src@FreeBSD.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id EE23E16A44C; Sun, 7 Aug 2005 23:43:57 +0000 (GMT) (envelope-from pjd@FreeBSD.org) Received: from repoman.freebsd.org (repoman.freebsd.org [216.136.204.115]) by mx1.FreeBSD.org (Postfix) with ESMTP id 0C47E43E12; Sun, 7 Aug 2005 23:19:03 +0000 (GMT) (envelope-from pjd@FreeBSD.org) Received: from repoman.freebsd.org (localhost [127.0.0.1]) by repoman.freebsd.org (8.13.1/8.13.1) with ESMTP id j77NJ2Pk058910; Sun, 7 Aug 2005 23:19:02 GMT (envelope-from pjd@repoman.freebsd.org) Received: (from pjd@localhost) by repoman.freebsd.org (8.13.1/8.13.1/Submit) id j77NJ2th058909; Sun, 7 Aug 2005 23:19:02 GMT (envelope-from pjd) Message-Id: <200508072319.j77NJ2th058909@repoman.freebsd.org> From: Pawel Jakub Dawidek Date: Sun, 7 Aug 2005 23:19:02 +0000 (UTC) To: src-committers@FreeBSD.org, cvs-src@FreeBSD.org, cvs-all@FreeBSD.org X-FreeBSD-CVS-Branch: HEAD Cc: Subject: cvs commit: src/etc/rc.d jail X-BeenThere: cvs-src@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: CVS commit messages for the src tree List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 07 Aug 2005 23:43:59 -0000 pjd 2005-08-07 23:19:02 UTC FreeBSD src repository Modified files: etc/rc.d jail Log: Skip jails which are already running and inform why. We're checking for /var/run/jail_.id file and if it exists, we don't start the jail. It should be also safe in case of reboot(8), because rc.d/cleanvar script is going to remove /var/run/jail_* files. It helps to avoid potential mess when the same jail is started twice, because of an administrator mistake (been there, done that). MFC after: 1 week Revision Changes Path 1.25 +4 -0 src/etc/rc.d/jail