apache graceful stop

This is a discussion on apache graceful stop within the Apache Web Server forums, part of the Web Server and Related Forums category; Hello, I am looking for a way of stopping apache gracefully. By gracefully I mean stopping all incomming connections and ...


Go Back   Usenet Forums > Web Server and Related Forums > Apache Web Server

FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 12-13-2004
cus123@yahoo.com
 
Posts: n/a
Default apache graceful stop

Hello,

I am looking for a way of stopping apache gracefully. By gracefully I
mean stopping all incomming connections and allowing all child
processes to complete their transactions before stopping.

I know this can be done with a restart, but i need to be able to do it
with stop.

Any takers?

  #2 (permalink)  
Old 12-13-2004
Newsgroup Poster
 
Posts: n/a
Default Re: apache graceful stop

graceful)
if [ $RUNNING -eq 0 ]; then
echo "$0 $ARG: httpd not running, trying to start"
if $HTTPD ; then
echo "$0 $ARG: httpd started"
else
echo "$0 $ARG: httpd could not be started"
ERROR=5
fi
else
if $HTTPD -t >/dev/null 2>&1; then
if kill -USR1 $PID ; then
echo "$0 $ARG: httpd gracefully restarted"
else
echo "$0 $ARG: httpd could not be restarted"
ERROR=7

it's in the apachectl script
<cus123@yahoo.com> wrote in message news:1102941350.847278.96470@c13g2000cwb.googlegro ups.com...
> Hello,
>
> I am looking for a way of stopping apache gracefully. By gracefully I
> mean stopping all incomming connections and allowing all child
> processes to complete their transactions before stopping.
>
> I know this can be done with a restart, but i need to be able to do it
> with stop.
>
> Any takers?
>

  #3 (permalink)  
Old 12-13-2004
Marcus
 
Posts: n/a
Default Re: apache graceful stop

I know about this! Isnt this the graceful RESTART? Im after a graceful
STOP, not a restart!!!

but thanks anyhow (good effort!)


Newsgroup Poster wrote:
> graceful)
> if [ $RUNNING -eq 0 ]; then
> echo "$0 $ARG: httpd not running, trying to start"
> if $HTTPD ; then
> echo "$0 $ARG: httpd started"
> else
> echo "$0 $ARG: httpd could not be started"
> ERROR=5
> fi
> else
> if $HTTPD -t >/dev/null 2>&1; then
> if kill -USR1 $PID ; then
> echo "$0 $ARG: httpd gracefully restarted"
> else
> echo "$0 $ARG: httpd could not be restarted"
> ERROR=7
>
> it's in the apachectl script
> <cus123@yahoo.com> wrote in message

news:1102941350.847278.96470@c13g2000cwb.googlegro ups.com...
> > Hello,
> >
> > I am looking for a way of stopping apache gracefully. By

gracefully I
> > mean stopping all incomming connections and allowing all child
> > processes to complete their transactions before stopping.
> >
> > I know this can be done with a restart, but i need to be able to do

it
> > with stop.
> >
> > Any takers?
> >


  #4 (permalink)  
Old 12-13-2004
Marcus
 
Posts: n/a
Default Re: apache graceful stop

I know about this! Isnt this the graceful RESTART? Im after a graceful
STOP, not a restart!!!

but thanks anyhow (good effort!)


Newsgroup Poster wrote:
> graceful)
> if [ $RUNNING -eq 0 ]; then
> echo "$0 $ARG: httpd not running, trying to start"
> if $HTTPD ; then
> echo "$0 $ARG: httpd started"
> else
> echo "$0 $ARG: httpd could not be started"
> ERROR=5
> fi
> else
> if $HTTPD -t >/dev/null 2>&1; then
> if kill -USR1 $PID ; then
> echo "$0 $ARG: httpd gracefully restarted"
> else
> echo "$0 $ARG: httpd could not be restarted"
> ERROR=7
>
> it's in the apachectl script
> <cus123@yahoo.com> wrote in message

news:1102941350.847278.96470@c13g2000cwb.googlegro ups.com...
> > Hello,
> >
> > I am looking for a way of stopping apache gracefully. By

gracefully I
> > mean stopping all incomming connections and allowing all child
> > processes to complete their transactions before stopping.
> >
> > I know this can be done with a restart, but i need to be able to do

it
> > with stop.
> >
> > Any takers?
> >


 
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are Off
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT +1. The time now is 09:28 PM.


Powered by vBulletin® Version 3.7.3
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO 3.0.0