Date: Thu, 06 Aug 2009 13:17:51 -0400 From: Michael Scheidell <scheidell@secnap.net> To: stef@memberwebs.com Cc: freebsd-jail@FreeBSD.org Subject: Re: crontab hanging won't die on SIGTERM in jail Message-ID: <4A7B103F.6040400@secnap.net> In-Reply-To: <20090806161117.90CA23039807@mx.npubs.com> References: <4A7AE4D4.2090600@secnap.net> <20090806161117.90CA23039807@mx.npubs.com>
next in thread | previous in thread | raw e-mail | index | archive | help
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/ _________________________________________________________________________
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?4A7B103F.6040400>