From owner-freebsd-jail@FreeBSD.ORG Thu Aug 6 14:23:20 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 9D60F1065670 for ; Thu, 6 Aug 2009 14:23:20 +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 3259C8FC08 for ; Thu, 6 Aug 2009 14:23:19 +0000 (UTC) Received: from localhost (mx1.secnap.com.ionspam.net [204.89.241.253]) by mx1.secnap.com.ionspam.net (Postfix) with ESMTP id 48B9AE65C80 for ; Thu, 6 Aug 2009 10:23:19 -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=1249568598; x= 1251382998; bh=kckkCdKI0k3ObRtMY5ZDFGui+Awu60Uj8GmdkYzrFkw=; b=P WQAbTk6UK9YcsQmJfwlH83Lf6aD1ZKsWDbkiRaSAWgiGnQM1+Uuw+t3wJGW7diPv e0/08cTNknQ2jvMP6gYlYQBRfPKbB7bXN3E2OY52gd5Fn5Wu4TQaCoYuyTzeeEEa gi5JtrthTMoPsQYPwLNpF4t1XpPZ/p4Gg9TAV8pr+w= 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 56E03E65C7B for ; Thu, 6 Aug 2009 10:23:18 -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 10:23:17 -0400 Message-ID: <4A7AE762.2070408@secnap.net> Date: Thu, 06 Aug 2009 10:23:30 -0400 From: Michael Scheidell User-Agent: Thunderbird 2.0.0.22 (Macintosh/20090605) MIME-Version: 1.0 To: freebsd-jail@FreeBSD.org References: <4A7AE4D4.2090600@secnap.net> In-Reply-To: <4A7AE4D4.2090600@secnap.net> X-OriginalArrivalTime: 06 Aug 2009 14:23:17.0934 (UTC) FILETIME=[71447CE0:01CA16A1] Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Content-Filtered-By: Mailman/MimeDel 2.1.5 Cc: 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 14:23:21 -0000 this doesn't stop cron: /etc/rc.d/cron stop (just keeps spitting out the pid) killall -SIGTERM cron (doesn't work) killall -SIGQUIT|SIGKILL seems to work. Workaround is this: echo "sigstop=SIGQUIT" > /etc/rc.conf.d/cron works fine now. isn't needed in base, just in jail. 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 > > > using jailtools (jkill -r), OR > shutdown -r +0 > > OR > > reboot > reboot: SIGTSTP init: No such process > > truss shows: > truss -p 87553 > (null)() = 0 (0x0) > gettimeofday({1249567500.835698},0x0) = 0 (0x0) > stat("tabs",{mode=drwx------ ,inode=10458278,size=512,blksize=4096}) = > 0 (0x0) > stat("/etc/crontab",{mode=-rw-r--r-- > ,inode=10461256,size=748,blksize=4096}) = 0 (0x0) > gettimeofday({1249567500.836244},0x0) = 0 (0x0) > fork() = 88217 (0x15899) > gettimeofday({1249567500.836862},0x0) = 0 (0x0) > nanosleep({60.000000000}) ERR#4 'Interrupted > system call' > SIGNAL 20 (SIGCHLD) > SIGNAL 20 (SIGCHLD) > wait4(0xffffffff,0xbfbfe99c,0x1,0x0) = 88217 (0x15899) > wait4(0xffffffff,0xbfbfe99c,0x1,0x0) ERR#10 'No child > processes' > sigreturn(0xbfbfe9d0) ERR#4 'Interrupted > system call' > gettimeofday({1249567500.842115},0x0) = 0 (0x0) > > > killall -SIGTERM cron > > (caused NO truss activity) > > it sees a HUP: > > killall -SIGHUP cron > > truss: > SIGNAL 1 (SIGHUP) > (null)() ERR#4 'Interrupted > system call' > gettimeofday({17.000000},0x0) = 0 (0x0) > (null)() = 0 (0x0) > > > SIGKILL will kill 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/ _________________________________________________________________________