From owner-freebsd-jail@FreeBSD.ORG Thu Aug 6 17:17:42 2009 Return-Path: Delivered-To: freebsd-jail@FreeBSD.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 16B46106566B for ; Thu, 6 Aug 2009 17:17:42 +0000 (UTC) (envelope-from scheidell@secnap.net) Received: from mx1.secnap.com.ionspam.net (mx1.secnap.com.ionspam.net [204.89.241.253]) by mx1.freebsd.org (Postfix) with ESMTP id CB7A78FC08 for ; Thu, 6 Aug 2009 17:17:41 +0000 (UTC) Received: from localhost (mx1.secnap.com.ionspam.net [204.89.241.253]) by mx1.secnap.com.ionspam.net (Postfix) with ESMTP id 1B244E65C78; Thu, 6 Aug 2009 13:17:41 -0400 (EDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=secnap.net; h= content-type:in-reply-to:references:subject:mime-version :user-agent:from:date:message-id; s=dkim; t=1249579059; x= 1251393459; bh=8N9j3Kq1VC3GS5pveLJzfM3eI4CihjD7ym6ODIc3e2s=; b=K w3upQUlLCyy+89suUqfQERESWvFgDQJsoYQjV+hws4BpwHXGJG0ebZeqhlnPphcQ 5M1Cuby43H0mSQMBhaCSEpNBpqn4CZIXowGeaPvMj9XyvgPMiAxM+csoYO7m3pjv XQpEU5Ct/LhOeG6iQd0qkYS7Snlu9Uq4ItlGXSt30U= X-Amavis-Modified: Mail body modified (using disclaimer) - mx1.secnap.com.ionspam.net X-Virus-Scanned: SpammerTrap(r) VPS-1500 2.04 at mx1.secnap.com.ionspam.net Received: from secnap3.secnap.com (secnap3.secnap.com [204.89.241.130]) by mx1.secnap.com.ionspam.net (Postfix) with ESMTP id 958F9E65C73; Thu, 6 Aug 2009 13:17:39 -0400 (EDT) Received: from Mikes-Laptop.local ([10.70.3.3]) by secnap3.secnap.com over TLS secured channel with Microsoft SMTPSVC(6.0.3790.3959); Thu, 6 Aug 2009 13:17:39 -0400 Message-ID: <4A7B103F.6040400@secnap.net> Date: Thu, 06 Aug 2009 13:17:51 -0400 From: Michael Scheidell User-Agent: Thunderbird 2.0.0.22 (Macintosh/20090605) MIME-Version: 1.0 To: stef@memberwebs.com References: <4A7AE4D4.2090600@secnap.net> <20090806161117.90CA23039807@mx.npubs.com> In-Reply-To: <20090806161117.90CA23039807@mx.npubs.com> X-OriginalArrivalTime: 06 Aug 2009 17:17:39.0130 (UTC) FILETIME=[CCA051A0:01CA16B9] Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Content-Filtered-By: Mailman/MimeDel 2.1.5 Cc: freebsd-jail@FreeBSD.org Subject: Re: crontab hanging won't die on SIGTERM in jail X-BeenThere: freebsd-jail@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Discussion about FreeBSD jail\(8\)" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 06 Aug 2009 17:17:42 -0000 Stef Walter wrote: > Michael Scheidell wrote: > >> anyone having problems during an in jail shutdown with crontab hanging? >> I have seen this in 6.4 and 7.1, on i386 and amd64. >> I don't remember problems with 6.3 >> > > I see this same problem in certain jails. A jail that has this problem > does it consistently, jails without the problem (on the same machine, > same FreeBSD userland/kernel) don't have the problem consistently. > > In these cases, sending cron the TERM signal just doesn't do anything. > > You have to wait for at least one minute after jail startup for cron to > get into this unTERMable state. > > YOU ARE RIGHT! it is intermentent. Try this (for me) on those boxes (before you try /etc/rc.d/cron restart: echo 'sig_stop=SIGKILL' > /etc/rc.conf.d/cron you arn't running ezjail, are you? could there be anything in ezjail that would do this? yes: boot someone in jail. /etc/rc.d/cron restart or killall -SIGTERM cron works. wait (for what?). ?? controlling terminal to quit? the first cron parse? some time (I went to lunch) and guess what. SIGTERM won't stop it. -- Michael Scheidell, CTO Phone: 561-999-5000, x 1259 > *| *SECNAP Network Security Corporation * Certified SNORT Integrator * 2008-9 Hot Company Award Winner, World Executive Alliance * Five-Star Partner Program 2009, VARBusiness * Best Anti-Spam Product 2008, Network Products Guide * King of Spam Filters, SC Magazine 2008 _________________________________________________________________________ This email has been scanned and certified safe by SpammerTrap(r). For Information please see http://www.secnap.com/products/spammertrap/ _________________________________________________________________________