From owner-freebsd-jail@FreeBSD.ORG Fri Aug 7 16:33:04 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 0E8D1106564A for ; Fri, 7 Aug 2009 16:33:04 +0000 (UTC) (envelope-from scheidell@secnap.net) Received: from mx2.secnap.com.ionspam.net (mx2.secnap.com.ionspam.net [216.134.223.54]) by mx1.freebsd.org (Postfix) with ESMTP id CD7608FC1D for ; Fri, 7 Aug 2009 16:33:03 +0000 (UTC) Received: from localhost (unknown [10.71.0.54]) by mx2.secnap.com.ionspam.net (Postfix) with ESMTP id CBC91D23C27; Fri, 7 Aug 2009 12:33:02 -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=1249662781; x= 1251477181; bh=d8dNa9T6xiyT+E/DWQ81R6+tYtbwlNVowBtDVN3IEdc=; b=p GI1XOlTVjLIXeH38e9Fu+hHNZXOt5rjt9JMK4JVO44OKMTpTrC6jXknqynwDBdGW 9/pJFfns2s0fj/io0gbhFe0EfJC8K+0ou9kXlwuUzUbodnYxv6VJ99U4kmmC7xGN M6IWK9nxUxwjd21vriXt7WuascaIsLp0Jmv+WqXGYM= X-Amavis-Modified: Mail body modified (using disclaimer) - mx2.secnap.com.ionspam.net X-Virus-Scanned: SpammerTrap(r) VPS-1500 2.04 at mx2.secnap.com.ionspam.net Received: from secnap3.secnap.com (secnap3.secnap.com [204.89.241.130]) by mx2.secnap.com.ionspam.net (Postfix) with ESMTP id C0217D23C24; Fri, 7 Aug 2009 12:33:01 -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); Fri, 7 Aug 2009 12:33:01 -0400 Message-ID: <4A7C574A.20200@secnap.net> Date: Fri, 07 Aug 2009 12:33:14 -0400 From: Michael Scheidell User-Agent: Thunderbird 2.0.0.22 (Macintosh/20090605) MIME-Version: 1.0 To: stef@memberwebs.com References: <0fbf01ca1700$db62247e$0d01460a@secnap.com> <20090807162714.55F313039832@mx.npubs.com> In-Reply-To: <20090807162714.55F313039832@mx.npubs.com> X-OriginalArrivalTime: 07 Aug 2009 16:33:01.0291 (UTC) FILETIME=[BAEC43B0:01CA177C] 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: Fri, 07 Aug 2009 16:33:04 -0000 Stef Walter wrote: > # mkdir -p /etc/rc.conf.d > # echo "sig_stop=SIGQUIT" > /etc/rc.conf.d/cron > > from lots of man pages, and old POSIX docs, they say that to 'reboot' or stop a unix system you send a SIGTERM to everything. the 'critcal' systems that need to stay up during reboot/haltsys (init!, getty) or anything that needs to do cleanup are supposed to trap (and ignore SIGTERM) once the non critical systems are stopped, THEN you send the SIGQUIT. I can't see anything critical about cron running during a reboot or haltsys. SIGQUIT should be the default for it anyway. did you verify that this works for you? that after setting for hours /etc/rc.d/cron stop works? (I had one sitting overnight, worked. yes, I want to know why.. I suspect its some combination of something rc. calls (something in my /usr/local/etc/rc.d dir) but don't know why it 'hangs around'. maybe one of those rc scripts sets something bad. -- 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/ _________________________________________________________________________