*) mod_lua: Add new directive LuaCodeCache for controlling in-memory
caching of lua scripts. [Daniel Gruno]
- *) core: Respect DefaultRuntimeDir/DEFAULT_REL_RUNTIMEDIR for the
- scoreboard (ScoreBoardFile). mod_lbmethod_heartbeat, mod_heartmonitor:
- Respect DefaultRuntimeDir/DEFAULT_REL_RUNTIMEDIR for the heartbeat
- storage file. [Jeff Trawick]
+ *) The following now respect DefaultRuntimeDir/DEFAULT_REL_RUNTIMEDIR:
+ - APIs: ap_log_pid(), ap_remove_pid, ap_read_pid()
+ - core: the scoreboard (ScoreBoardFile) and pid file (PidFile)
+ - mod_lbmethod_heartbeat, mod_heartmonitor: heartbeat storage file
+ [Jeff Trawick]
*) mod_ssl: Add RFC 5878 support. [Ben Laurie]
# Note that this is the default PidFile for most MPMs.
#
<IfModule !mpm_netware_module>
- PidFile "@rel_runtimedir@/httpd.pid"
+ PidFile "httpd.pid"
</IfModule>
#
<description>File where the server records the process ID
of the daemon</description>
<syntax>PidFile <var>filename</var></syntax>
-<default>PidFile logs/httpd.pid</default>
+<default>PidFile httpd.pid</default>
<contextlist><context>server config</context></contextlist>
<modulelist><module>event</module><module>mpm_winnt</module>
<module>mpmt_os2</module><module>prefork</module><module>worker</module>
<p>The <directive>PidFile</directive> directive sets the file to
which the server records the process id of the daemon. If the
filename is not absolute then it is assumed to be relative to the
- <directive module="core">ServerRoot</directive>.</p>
+ <directive module="core">DefaultRuntimeDir</directive>.</p>
<example><title>Example</title>
<highlight language="config">
/* Where the main/parent process's pid is logged */
#ifndef DEFAULT_PIDLOG
-#define DEFAULT_PIDLOG DEFAULT_REL_RUNTIMEDIR "/httpd.pid"
+#define DEFAULT_PIDLOG "httpd.pid"
#endif
#if defined(NETWARE)
/**
* Log the current pid of the parent process
* @param p The pool to use for processing
- * @param fname The name of the file to log to
+ * @param fname The name of the file to log to. If the filename is not
+ * absolute then it is assumed to be relative to DefaultRuntimeDir.
*/
AP_DECLARE(void) ap_log_pid(apr_pool_t *p, const char *fname);
/**
* Remove the pidfile.
* @param p The pool to use for processing
- * @param fname The name of the pid file to remove
+ * @param fname The name of the pid file to remove. If the filename is not
+ * absolute then it is assumed to be relative to DefaultRuntimeDir.
*/
AP_DECLARE(void) ap_remove_pid(apr_pool_t *p, const char *fname);
/**
* Retrieve the pid from a pidfile.
* @param p The pool to use for processing
- * @param filename The name of the file containing the pid
+ * @param filename The name of the file containing the pid. If the filename
+ * is not absolute then it is assumed to be relative to DefaultRuntimeDir.
* @param mypid Pointer to pid_t (valid only if return APR_SUCCESS)
*/
AP_DECLARE(apr_status_t) ap_read_pid(apr_pool_t *p, const char *filename, pid_t *mypid);
AP_DECLARE(void) ap_remove_pid(apr_pool_t *p, const char *rel_fname)
{
apr_status_t rv;
- const char *fname = ap_server_root_relative(p, rel_fname);
+ const char *fname = ap_runtime_dir_relative(p, rel_fname);
if (fname != NULL) {
rv = apr_file_remove(fname, p);
return;
}
- fname = ap_server_root_relative(p, filename);
+ fname = ap_runtime_dir_relative(p, filename);
if (!fname) {
ap_log_error(APLOG_MARK, APLOG_STARTUP|APLOG_CRIT, APR_EBADPATH,
NULL, APLOGNO(00097) "Invalid PID file path %s, ignoring.", filename);
return APR_EGENERAL;
}
- fname = ap_server_root_relative(p, filename);
+ fname = ap_runtime_dir_relative(p, filename);
if (!fname) {
ap_log_error(APLOG_MARK, APLOG_STARTUP|APLOG_CRIT, APR_EBADPATH,
NULL, APLOGNO(00101) "Invalid PID file path %s, ignoring.", filename);
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));
+ ap_runtime_dir_relative(p, ap_pid_fname));
}
const char *ap_mpm_set_max_requests(cmd_parms *cmd, void *dummy,