Created
November 11, 2012 04:19
-
-
Save lo48576/4053651 to your computer and use it in GitHub Desktop.
apache 2.4 "Invalid Mutex directory" patch in gentoo
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
--- orig/apache2 2012-11-11 12:46:14.566069898 +0900 | |
+++ /etc/init.d/apache2 2012-11-11 13:01:16.976170759 +0900 | |
@@ -50,6 +50,15 @@ | |
return 1 | |
fi | |
+ # Create mutex directory for mod_ssl. | |
+ # Portage makes the directory in tmpfs at once, so it disappears after reboot. | |
+ # For details, see http://forums.gentoo.org/viewtopic-t-939604-start-0.html | |
+ MODSSL_MUTEX_DIR="$(sed -e '/^Mutex/!d;s!^Mutex *file:\(/[^ ]*\) *ssl-cache *$!\1!' /etc/apache2/modules.d/40_mod_ssl.conf)" | |
+ if [ ! -d ${MODSSL_MUTEX_DIR} ]; then | |
+ einfo "${MODSSL_MUTEX_DIR} does not exist. creating." | |
+ mkdir "${MODSSL_MUTEX_DIR}" | |
+ fi | |
+ | |
APACHE2_OPTS="${APACHE2_OPTS} -d ${SERVERROOT}" | |
APACHE2_OPTS="${APACHE2_OPTS} -f ${CONFIGFILE}" | |
[ -n "${STARTUPERRORLOG}" ] && APACHE2_OPTS="${APACHE2_OPTS} -E ${STARTUPERRORLOG}" | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment