Some parents have a lot of nerve raising their children to be zombies. As if it's not bad enough that so many kids lack anything resembling respect for others and lack motivation for anything but immediate creature comforts, now some probably-trailer-trash-wannabe's are letting their brats become zombies. It utterly appaling....<br>
<br>Oh. <br><br>Hmm.<br><br>Zombie Survival Guide is quite clear that to "kill" a zombie it is necessary to destroy the brain. <br><br>Hmm.<br><br>So why is sendmail a sibling of the fast_cgi script again?<br><br>
<div class="gmail_quote">On Mon, Feb 22, 2010 at 3:11 PM, James Sumners <span dir="ltr"><<a href="mailto:james.sumners@gmail.com">james.sumners@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
I'm loathe to kill the parent process because it has a second child --<br>
sendmail. I kind of want sendmail running.<br>
<br>
$ ps -eH<br>
*snip*<br>
1599 ? 00:00:00 cron<br>
1606 ? 00:00:00 cron<br>
1614 ? 00:00:00 boot_fastcgi_bi <defunct><br>
1629 ? 00:00:00 sendmail<br>
*snip*<br>
<div><div></div><div class="h5"><br>
On Mon, Feb 22, 2010 at 2:58 PM, Lightner, Jeff <<a href="mailto:jlightner@water.com">jlightner@water.com</a>> wrote:<br>
> In that situation sometimes (though not always) killing the parent will<br>
> get rid of the zombie.<br>
><br>
> As an HP presenter used to say at the start of his performance<br>
> presentations:<br>
> You can't kill a zombie because IT'S ALREADY DEAD!<br>
><br>
> -----Original Message-----<br>
> From: <a href="mailto:ale-bounces@ale.org">ale-bounces@ale.org</a> [mailto:<a href="mailto:ale-bounces@ale.org">ale-bounces@ale.org</a>] On Behalf Of<br>
> Michael H. Warfield<br>
> Sent: Monday, February 22, 2010 2:29 PM<br>
> To: Atlanta Linux Enthusiasts - Yes! We run Linux!<br>
> Cc: <a href="mailto:mhw@wittsend.com">mhw@wittsend.com</a><br>
> Subject: Re: [ale] Boot script becomes a zombie?<br>
><br>
> On Sun, 2010-02-21 at 23:05 -0500, James Sumners wrote:<br>
>> I have a script that looks runs several other scripts in turn. I use<br>
>> this script to startup several FastCGI processes. This is the script:<br>
><br>
>> ##########<br>
>> #!/bin/bash<br>
>> find /var/www/fastcgi/scripts/ -type f -execdir '{}' 2>&1 1>/dev/null<br>
> \;<br>
>> return $?<br>
>> ##########<br>
><br>
>> I then have the following crontab entry for root:<br>
>> @reboot /path/to/boot_cgi_bin.sh<br>
><br>
>> Every time I reboot my server, this boot_cgi_bin.sh script turns into<br>
>> a zombie (the cgi bins do get started). Does anyone see a reason why<br>
>> this script would hang up as a zombie process?<br>
><br>
> A zombie process means that process terminated but the process (which<br>
> would seem to be cron in this case) which started it has not reaped the<br>
> child's status. It's really all gone and only exists as an entry in the<br>
> proc table. This CAN happen if a child it invokes leaves it's file<br>
> descriptors open and they're pipes back to the parent (it's what causes<br>
> ssh to refuse to terminate after running a script which restarts<br>
> services.). I had to deal with that in the smbmount program when I was<br>
> maintaining it.<br>
><br>
> Do a ps -lp {process id} on that process id and then see what the parent<br>
> process is (may be a shell).<br>
><br>
> Might also redirect stdin from /dev/null just in case one of those<br>
> scripts you're invoking is doing something funny with stdin.<br>
><br>
> Mike<br>
> --<br>
> Michael H. Warfield (AI4NB) | (770) 985-6132 | mhw@WittsEnd.com<br>
> /\/\|=mhw=|\/\/ | (678) 463-0932 |<br>
> <a href="http://www.wittsend.com/mhw/" target="_blank">http://www.wittsend.com/mhw/</a><br>
> NIC whois: MHW9 | An optimist believes we live in the best<br>
> of all<br>
> PGP Key: 0x674627FF | possible worlds. A pessimist is sure of<br>
> it!<br>
><br>
> Proud partner. Susan G. Komen for the Cure.<br>
><br>
> Please consider our environment before printing this e-mail or attachments.<br>
> ----------------------------------<br>
> CONFIDENTIALITY NOTICE: This e-mail may contain privileged or confidential information and is for the sole use of the intended recipient(s). If you are not the intended recipient, any disclosure, copying, distribution, or use of the contents of this information is prohibited and may be unlawful. If you have received this electronic transmission in error, please reply immediately to the sender that you have received the message in error, and delete it. Thank you.<br>
> ----------------------------------<br>
><br>
> _______________________________________________<br>
> Ale mailing list<br>
> <a href="mailto:Ale@ale.org">Ale@ale.org</a><br>
> <a href="http://mail.ale.org/mailman/listinfo/ale" target="_blank">http://mail.ale.org/mailman/listinfo/ale</a><br>
> See JOBS, ANNOUNCE and SCHOOLS lists at<br>
> <a href="http://mail.ale.org/mailman/listinfo" target="_blank">http://mail.ale.org/mailman/listinfo</a><br>
><br>
<br>
<br>
<br>
</div></div><div class="im">--<br>
James Sumners<br>
<a href="http://james.roomfullofmirrors.com/" target="_blank">http://james.roomfullofmirrors.com/</a><br>
<br>
"All governments suffer a recurring problem: Power attracts<br>
pathological personalities. It is not that power corrupts but that it<br>
is magnetic to the corruptible. Such people have a tendency to become<br>
drunk on violence, a condition to which they are quickly addicted."<br>
<br>
Missionaria Protectiva, Text QIV (decto)<br>
CH:D 59<br>
<br>
_______________________________________________<br>
</div><div><div></div><div class="h5">Ale mailing list<br>
<a href="mailto:Ale@ale.org">Ale@ale.org</a><br>
<a href="http://mail.ale.org/mailman/listinfo/ale" target="_blank">http://mail.ale.org/mailman/listinfo/ale</a><br>
See JOBS, ANNOUNCE and SCHOOLS lists at<br>
<a href="http://mail.ale.org/mailman/listinfo" target="_blank">http://mail.ale.org/mailman/listinfo</a><br>
</div></div></blockquote></div><br><br clear="all"><br>-- <br>-- <br>James P. Kinney III<br>Actively in pursuit of Life, Liberty and Happiness <br><br>