crontab hanging won't die on SIGTERM in jail

Michael Scheidell scheidell at secnap.net
Thu Aug 6 15:50:03 UTC 2009


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/
_________________________________________________________________________
   


More information about the freebsd-jail mailing list