You are viewing a plain text version of this content. The canonical link for it is here.
Posted to modperl@perl.apache.org by Stas Bekman <st...@stason.org> on 2000/08/31 11:18:58 UTC
SIGTERM/SIGKILL at the stop/restart events
I'm documenting the PERL_DESTRUCT_LEVEL options, which skips the
perl_destruct() call. At the same place I also mention that whe you
stop/restart Apache, the parent first sends the SIGTERM (nice) kill signal
to the children, advising them to quit. But who wants to die:
Why I should die
Would I be more noticed
Than I ever was before?
Would the things I've said and done
Matter any more?
So the parent waits for a few secs and then becomes unpatient and sends
the cruel SIGKILL saying:
Die if you want to
You misguided martyr!
I wash my hands
Of your demolition
Die if you want to
You innocent puppet!
There is nothing you can do against the cruel sysadmin so there comes
a last cry:
God forgive them
They don't know what they're doing
Who is my mother?
Where is my mother?
My God
My God
Why have you forgotten me?
I'm thirsty
I'm thirsty
Oh God I'm thirsty
It is finished
Father
Into your hands
I command my spirit
and voila the processes has been killed.
And one of the nice folks has pointed out that it doesn't matter whether
you have the PERL_DESTRUCT_LEVEL option set to -1, if the processes get
brutally killed, they will not complete their destroy/end blocks and
therefore nasty things might happen.
Anyone can comment on this possible problem? I've seen many times the
Apache processes being killed with kill -9 (SIGKILL), but I had never had
a significant cleanup to do. Do you?
Because if there is a problem even a potential, it should be fixed or
prevented fron happening I think.
Thanks a lot!
P.S. If you are not familiar with the great "Jesus Christ Super
Star" musical it's a time to watch it. The above lyrics were copied
from: http://user.chollian.net/~asalabia/musical/jcsly.htm.
_____________________________________________________________________
Stas Bekman JAm_pH -- Just Another mod_perl Hacker
http://stason.org/ mod_perl Guide http://perl.apache.org/guide
mailto:stas@stason.org http://apachetoday.com http://jazzvalley.com
http://singlesheaven.com http://perlmonth.com perl.org apache.org
Re: SIGTERM/SIGKILL at the stop/restart events
Posted by David Hodgkinson <da...@hodgkinson.org>.
Stas Bekman <st...@stason.org> writes:
*snip*
> P.S. If you are not familiar with the great "Jesus Christ Super
> Star" musical it's a time to watch it. The above lyrics were copied
> from: http://user.chollian.net/~asalabia/musical/jcsly.htm.
And of course, Ian Gillan is on the "original cast" recording.
--
Dave Hodgkinson, http://www.hodgkinson.org
Editor-in-chief, The Highway Star http://www.deep-purple.com
Apache, mod_perl, MySQL, Sybase hired gun for, well, hire
-----------------------------------------------------------------