Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 06 Aug 2009 11:50:13 -0400
From:      Michael Scheidell <scheidell@secnap.net>
To:        Marco Steinbach <coco@executive-computing.de>
Cc:        freebsd-jail@FreeBSD.org
Subject:   Re: crontab hanging won't die on SIGTERM in jail
Message-ID:  <4A7AFBB5.3030706@secnap.net>
In-Reply-To: <4A7AF719.6000201@executive-computing.de>
References:  <4A7AE4D4.2090600@secnap.net> <4A7AF719.6000201@executive-computing.de>

next in thread | previous in thread | raw e-mail | index | archive | help
then doing this doesn't make any sense (but fixed it)

echo 'sig_stop=SIGTERM' > /etc/rc.conf.d/cron

or, this even fixed it:

echo 'sig_stop=SIGTERM' >> /etc/rc.conf

the 'killall -SIGTERM cron' worked UNLESS I HAD PREVIOUSLY TRIED 
/etc/rc.d/cron stop.

now, with sig_stop in a conf file, it works.  doesn't make sense, but works.

Something, somewhere, somebody is masking or setting sig_stop to '' as a 
default.  I can't find it.

rc.subr seems to indicate it will set it to SIGTERM if undef:

grep sig_stop /etc/*
rc.subr:#                       kill $sig_stop $rc_pid
rc.subr:#                       ($sig_stop defaults to TERM.)
rc.subr:                        _doit=$(_run_rc_killcmd "${sig_stop:-TERM}")

nothing in /etc/defaults/* or /etc/rc.conf overrides it

grep sig_stop /etc/defaults/*

grep sig_stop /etc/rc.d/cron
grep sig_stop /etc/rc.d/*
/etc/rc.d/nfsd:sig_stop="USR1"

-- 
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?4A7AFBB5.3030706>