Go to:
Gentoo Home
Documentation
Forums
Lists
Bugs
Planet
Store
Wiki
Get Gentoo!
Gentoo's Bugzilla – Attachment 95480 Details for
Bug 145596
apache2 does not always shut down in a timely manner
Home
|
New
–
[Ex]
|
Browse
|
Search
|
Privacy Policy
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
patch to check apache2 shutdown state /etc/init.d/apache2
initd-apache2-patch.diff (text/plain), 1.03 KB, created by
Kai Krakow
on 2006-08-30 06:37:26 UTC
(
hide
)
Description:
patch to check apache2 shutdown state /etc/init.d/apache2
Filename:
MIME Type:
Creator:
Kai Krakow
Created:
2006-08-30 06:37:26 UTC
Size:
1.03 KB
patch
obsolete
>--- apache2.orig 2006-08-30 15:29:17.000000000 +0200 >+++ apache2 2006-08-30 15:28:22.000000000 +0200 >@@ -78,6 +78,30 @@ > checkconfig || return 1 > ebegin "Stopping apache2" > ${APACHE2} ${APACHE2_OPTS} -k stop >+ # shutdown patch >+ # TODO do "echo" in the gentoo way >+ # TODO extract process path from ${APACHE2} >+ proc="/usr/bin/apache2" >+ for wait in `seq 30 -1 1`; do >+ sleep 1 >+ [[ -z "`pidof ${proc}`" ]] && break >+ [[ ${wait} = "30" ]] && echo -n "\nWaiting for apache to shut down... " >+ echo -n "$wait " >+ done >+ if [[ -n "`pidof ${proc}`" ]]; then >+ echo -n "trying harder " >+ kill -15 `pidof ${proc}` >+ sleep 5 >+ fi >+ if [[ -n "`pidof ${proc}`" ]]; then >+ echo "failed!" >+ false >+ elif [[ "${wait}" != "30" ]]; then >+ echo "success." >+ true >+ else >+ true >+ fi > eend $? > }
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 145596
: 95480