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 ...
|
|||||||
| FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
|
|||
|
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? |
|
|||
|
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? > |
|
|||
|
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? > > |
|
|||
|
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? > > |