Go to:
Gentoo Home
Documentation
Forums
Lists
Bugs
Planet
Store
Wiki
Get Gentoo!
Gentoo's Bugzilla – Attachment 71512 Details for
Bug 110556
apache2: clean shutdown patch
Home
|
New
–
[Ex]
|
Browse
|
Search
|
Privacy Policy
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
apache2 clean shutdown patch
apache2-cleanshutdown.patch (text/plain), 1.04 KB, created by
Michal Margula
on 2005-10-26 08:58:07 UTC
(
hide
)
Description:
apache2 clean shutdown patch
Filename:
MIME Type:
Creator:
Michal Margula
Created:
2005-10-26 08:58:07 UTC
Size:
1.04 KB
patch
obsolete
>--- /tmp/apache2 2005-10-26 17:56:35.000000000 +0200 >+++ /etc/init.d/apache2 2005-10-26 17:53:08.000000000 +0200 >@@ -83,6 +83,33 @@ > checkconfig || return 1 > ebegin "Stopping apache2" > ${APACHE2} ${APACHE2_OPTS} -k stop >+ >+ PID=`cat /var/run/apache2.pid 2>/dev/null` >+ >+ # Now we have to wait until squid has _really_ stopped. >+ sleep 2 >+ if test -n "$PID" && kill -0 $PID 2>/dev/null >+ then >+ einfon "Waiting ." >+ cnt=0 >+ while kill -0 $PID 2>/dev/null >+ do >+ cnt=`expr $cnt + 1` >+ if [ $cnt -gt 60 ] >+ then >+ # Waited 120 seconds now. Fail. >+ eend 1 "Failed." >+ break >+ fi >+ sleep 2 >+ echo -n "." >+ done >+ echo -n "done." >+ eend 0 >+ else >+ eend 0 >+ 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 110556
: 71512