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