]> granicus.if.org Git - apache/commit
Rework the code to handle apache -k shutdown|restart. The fundamental problem
authorBill Stoddard <stoddard@apache.org>
Mon, 14 Feb 2000 22:01:08 +0000 (22:01 +0000)
committerBill Stoddard <stoddard@apache.org>
Mon, 14 Feb 2000 22:01:08 +0000 (22:01 +0000)
commitaab3db57fd717ed4c45d2dcab977c271716e5348
treef31e0b23b637f79930dba7342f6114c10c5eba10
parent20b80ac4d2ba2d0f14d06f067de487a560a661d7
Rework the code to handle apache -k shutdown|restart. The fundamental problem
being solved here is determining the best way to discover the Apache
parent process PID (stored in the location specified by the PidFile directive).
This patch attempts to read the config file directly to determine the
pidfile and avoids going through the motions of calling all the module initialization
routines.

This patch will not work if the pidfile directive is in a file pointed to by
an include directive. Not sure is this is a common case or not on Windows.
If it is, it is easy enough to add a bit more code to follow include
directives. An interesting modification would be to detect the presence of a \
-C directive containing a pointer to the pidfile: E.g.,
apache -k restart -C "pidfile d:/mypidfile". Let's keep it simple for now and
see what happens.

git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@84620 13f79535-47bb-0310-9956-ffa450edef68
server/main.c
server/mpm/winnt/mpm_winnt.c