15648359 SUNBT6959303 Cannot start Solaris Apache 2 and 2.2 via httpd -f
authorPetr Sumbera <petr.sumbera@oracle.com>
Wed, 19 Jun 2013 12:41:33 -0700
changeset 1354 b0dd55c38340
parent 1353 6e63aa51bc82
child 1355 0dd0df8cece9
15648359 SUNBT6959303 Cannot start Solaris Apache 2 and 2.2 via httpd -f
components/apache2/patches/apachectl.patch
components/apache2/patches/bug54719.patch
--- a/components/apache2/patches/apachectl.patch	Wed Jun 19 12:41:33 2013 -0700
+++ /dev/null	Thu Jan 01 00:00:00 1970 +0000
@@ -1,15 +0,0 @@
---- support/apachectl.in.orig	Tue Jul 11 20:38:44 2006
-+++ support/apachectl.in	Tue Feb 12 02:24:17 2008
-@@ -75,6 +75,12 @@
-     ARGV="-h"
- fi
- 
-+if [ ! -d "@exp_runtimedir@" ]; then
-+    mkdir -p @exp_runtimedir@
-+    chown -R webservd @exp_runtimedir@
-+    chgrp -R webservd @exp_runtimedir@
-+fi
-+
- case $ARGV in
- start|stop|restart|graceful|graceful-stop)
-     $HTTPD -k $ARGV
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/components/apache2/patches/bug54719.patch	Wed Jun 19 12:41:33 2013 -0700
@@ -0,0 +1,26 @@
+https://issues.apache.org/bugzilla/show_bug.cgi?id=54719
+
+--- server/main.c
++++ server/main.c
+@@ -675,6 +675,21 @@ int main(int argc, const char * const ar
+         }
+     }
+ 
++    /* Unless started with non-default configuration file we will ensure that
++     * run time directory exists. This is required by systems where run time
++     * directory is on non-reboot persistent file system).
++     */
++    if (strcmp(confname, SERVER_CONFIG_FILE) == 0) {
++        rv = apr_dir_make_recursive(DEFAULT_REL_RUNTIMEDIR,
++                                    APR_OS_DEFAULT, pconf);
++        if (rv != APR_SUCCESS) {
++            ap_log_error(APLOG_MARK, APLOG_STARTUP |APLOG_ERR,
++                         0, NULL, "could not create runtime directory: %s",
++                         DEFAULT_REL_RUNTIMEDIR);
++            destroy_and_exit_process(process, 1);
++        }
++    }
++
+     apr_pool_clear(plog);
+ 
+     if ( ap_run_open_logs(pconf, plog, ptemp, server_conf) != OK) {