equal
deleted
inserted
replaced
|
1 Patch origin: in-house |
|
2 Patch status: submitted to community |
|
3 |
|
4 https://issues.apache.org/bugzilla/show_bug.cgi?id=54719 |
|
5 |
|
6 --- server/main.c |
|
7 +++ server/main.c |
|
8 @@ -685,6 +688,21 @@ |
|
9 } |
|
10 } |
|
11 |
|
12 + /* Unless started with non-default configuration file we will ensure that |
|
13 + * run time directory exists. This is required by systems where run time |
|
14 + * directory is on non-reboot persistent file system). |
|
15 + */ |
|
16 + if (strcmp(confname, SERVER_CONFIG_FILE) == 0) { |
|
17 + rv = apr_dir_make_recursive(DEFAULT_REL_RUNTIMEDIR, |
|
18 + APR_OS_DEFAULT, pconf); |
|
19 + if (rv != APR_SUCCESS) { |
|
20 + ap_log_error(APLOG_MARK, APLOG_STARTUP |APLOG_ERR, |
|
21 + 0, NULL, "could not create runtime directory: %s", |
|
22 + DEFAULT_REL_RUNTIMEDIR); |
|
23 + destroy_and_exit_process(process, 1); |
|
24 + } |
|
25 + } |
|
26 + |
|
27 apr_pool_clear(plog); |
|
28 |
|
29 if ( ap_run_open_logs(pconf, plog, ptemp, ap_server_conf) != OK) { |