diff options
author | Stefan Fritsch <sf@apache.org> | 2011-10-09 20:35:23 +0200 |
---|---|---|
committer | Stefan Fritsch <sf@apache.org> | 2011-10-09 20:35:23 +0200 |
commit | 0ddfb3e6ccf8b5bc6995b63732dc0a0fa58f8790 (patch) | |
tree | 47e100c65525f10b4b7834d13333c2fb75e9a41f /server/mpm_common.c | |
parent | Consistenly use apr_file_* API instead of libc when dumping config because (diff) | |
download | apache2-0ddfb3e6ccf8b5bc6995b63732dc0a0fa58f8790.tar.xz apache2-0ddfb3e6ccf8b5bc6995b63732dc0a0fa58f8790.zip |
Add -D DUMP_RUN_CFG option to dump some configuration items
from the parsed (or default) config. This is useful for init scripts that
need to setup temporary directories and permissions, for example if those
temporary directories are located on a ram disk.
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1180681 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'server/mpm_common.c')
-rw-r--r-- | server/mpm_common.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/server/mpm_common.c b/server/mpm_common.c index f04ac18176..aee3f18c1f 100644 --- a/server/mpm_common.c +++ b/server/mpm_common.c @@ -299,6 +299,12 @@ const char *ap_mpm_set_pidfile(cmd_parms *cmd, void *dummy, return NULL; } +void ap_mpm_dump_pidfile(apr_pool_t *p, apr_file_t *out) +{ + apr_file_printf(out, "PidFile: \"%s\"\n", + ap_server_root_relative(p, ap_pid_fname)); +} + const char *ap_mpm_set_max_requests(cmd_parms *cmd, void *dummy, const char *arg) { |