From owner-freebsd-rc@FreeBSD.ORG Thu Nov 23 12:12:46 2006 Return-Path: X-Original-To: freebsd-rc@freebsd.org Delivered-To: freebsd-rc@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 31AC316A4D0; Thu, 23 Nov 2006 12:12:46 +0000 (UTC) (envelope-from yar@comp.chem.msu.su) Received: from comp.chem.msu.su (comp.chem.msu.su [158.250.32.97]) by mx1.FreeBSD.org (Postfix) with ESMTP id C889A43D6D; Thu, 23 Nov 2006 12:11:01 +0000 (GMT) (envelope-from yar@comp.chem.msu.su) Received: from comp.chem.msu.su (localhost [127.0.0.1]) by comp.chem.msu.su (8.13.4/8.13.3) with ESMTP id kANCB56w089688; Thu, 23 Nov 2006 15:11:05 +0300 (MSK) (envelope-from yar@comp.chem.msu.su) Received: (from yar@localhost) by comp.chem.msu.su (8.13.4/8.13.3/Submit) id kANCB2Wg089686; Thu, 23 Nov 2006 15:11:02 +0300 (MSK) (envelope-from yar) Date: Thu, 23 Nov 2006 15:11:01 +0300 From: Yar Tikhiy To: Laurent LEVIER Message-ID: <20061123121101.GF62551@comp.chem.msu.su> References: <20061013033408.GA30695@FreeBSD.csie.nctu.edu.tw> <7.0.1.0.2.20061013085800.01e91dc0@argosnet.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <7.0.1.0.2.20061013085800.01e91dc0@argosnet.com> User-Agent: Mutt/1.5.9i Cc: freebsd-rc@freebsd.org, bug-followup@freebsd.org Subject: Re: conf/102913: /etc/rc.d/named killall in jailed OS X-BeenThere: freebsd-rc@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Discussion related to /etc/rc.d design and implementation." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 23 Nov 2006 12:12:46 -0000 On Fri, Oct 13, 2006 at 08:59:44AM +0200, Laurent LEVIER wrote: > > I already patched my script. > Now it kills pid, then if it fails, gets all named out of jail (J > flag) and kill these. FWIW, I've just added a new little feature to pkill(1): now it can selectively kill processes out of jail. Perhaps it can be useful here. If you need to kill all nameds that are not in jail, just use the following command: pkill -j none named BTW, for the opposite effect, now the following command should be used: pkill -j any named -- Yar