Univention Bugzilla – Attachment 7796 Details for
Bug 41781
Consecutive apache2 restarts error: Address already in use: make_sock: could not bind to address [::]:443
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Fix for initscript, wait for pidfile after apache2 start
wait_for_pidfile.patch (text/plain), 1.38 KB, created by
Erik Damrose
on 2016-07-12 14:58:36 CEST
(
hide
)
Description:
Fix for initscript, wait for pidfile after apache2 start
Filename:
MIME Type:
Creator:
Erik Damrose
Created:
2016-07-12 14:58:36 CEST
Size:
1.38 KB
patch
obsolete
>diff -Naur apache2-2.2.22.orig/debian/apache2.2-common.apache2.init apache2-2.2.22/debian/apache2.2-common.apache2.init >--- apache2-2.2.22.orig/debian/apache2.2-common.apache2.init 2016-07-12 14:44:10.905072398 +0200 >+++ apache2-2.2.22/debian/apache2.2-common.apache2.init 2016-07-12 14:51:04.289285419 +0200 >@@ -169,6 +169,19 @@ > fi > } > >+apache_wait_for_pidfile() { >+ # wait up to 5 seconds until really started (i.e., PIDFILE exists) >+ i=0 >+ while [ "$i" -lt "50" ]; do >+ if [ -e "$PIDFILE" ]; then >+ return 0 >+ fi >+ i=$(($i+1)) >+ sleep 0.1 >+ done >+ return 1 >+} >+ > close_fds () { > local fd > for fd in /proc/self/fd/* >@@ -195,7 +208,12 @@ > log_progress_msg htcacheclean > start_htcacheclean || log_end_msg 1 > fi >- log_end_msg 0 >+ if ! apache_wait_for_pidfile ; then >+ log_end_msg 0 >+ log_warning_msg "apache2 is running, but pidfile is not yet created" >+ else >+ log_end_msg 0 >+ fi > else > log_end_msg 1 > fi >@@ -286,7 +304,12 @@ > if check_htcacheclean ; then > start_htcacheclean || log_end_msg 1 > fi >- log_end_msg 0 >+ if ! apache_wait_for_pidfile ; then >+ log_end_msg 0 >+ log_warning_msg "apache2 is running, but pidfile is not yet created" >+ else >+ log_end_msg 0 >+ fi > else > log_end_msg 1 > fi
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 41781
: 7796