You are viewing a plain text version of this content. The canonical link for it is here.
Posted to bugs@httpd.apache.org by bu...@apache.org on 2013/03/18 13:53:06 UTC

[Bug 54719] New: httpd should check for and eventually create pid file directory

https://issues.apache.org/bugzilla/show_bug.cgi?id=54719

            Bug ID: 54719
           Summary: httpd should check for and eventually create pid file
                    directory
           Product: Apache httpd-2
           Version: 2.2.24
          Hardware: All
                OS: All
            Status: NEW
          Severity: normal
          Priority: P2
         Component: Core
          Assignee: bugs@httpd.apache.org
          Reporter: petr.sumbera@oracle.com
    Classification: Unclassified

On Solaris we configure Apache to layout where runtimedir is set to
/var/run/apache2/2.2. Httpd itself will report following error when this
directory is not available:

[Mon Mar 18 13:19:55 2013] [error] (2)No such file or directory: could not
create /var/run/apache2/2.2/httpd.pid
[Mon Mar 18 13:19:55 2013] [error] httpd: could not log pid to file
/var/run/apache2/2.2/httpd.pid

We currently create this directory in apachectl. But it would be probably
better to allow httpd to create this directory when it's needed. Note that
/var/run is cleared after each reboot.

-- 
You are receiving this mail because:
You are the assignee for the bug.

---------------------------------------------------------------------
To unsubscribe, e-mail: bugs-unsubscribe@httpd.apache.org
For additional commands, e-mail: bugs-help@httpd.apache.org


[Bug 54719] httpd should check for and eventually create pid file directory

Posted by bu...@apache.org.
https://issues.apache.org/bugzilla/show_bug.cgi?id=54719

Christophe JAILLET <ch...@wanadoo.fr> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Keywords|                            |PatchAvailable

-- 
You are receiving this mail because:
You are the assignee for the bug.

---------------------------------------------------------------------
To unsubscribe, e-mail: bugs-unsubscribe@httpd.apache.org
For additional commands, e-mail: bugs-help@httpd.apache.org


[Bug 54719] httpd should check for and eventually create pid file directory

Posted by bu...@apache.org.
https://issues.apache.org/bugzilla/show_bug.cgi?id=54719

--- Comment #2 from Petr Sumbera <pe...@oracle.com> ---
Created attachment 30458
  --> https://issues.apache.org/bugzilla/attachment.cgi?id=30458&action=edit
new patch

There seems to be problem with originally proposed action of creating Pid file
directory if it doesn't exist.

Original idea was that this directory (which is by default runtime directory)
is used by other components after it's created. But some modules may need to
access this directory before Pid file is created.

One example is mod_fcgid shared memory which is created in module init
function.

Therefore it seems better to create run time directory at
early stage of httpd start. And since Apache allows to overwrite all run time
directory usage (via directives like PidFile, FcgidProcessTableFile, ..) we can
do that only when default configuration file is used.

-- 
You are receiving this mail because:
You are the assignee for the bug.

---------------------------------------------------------------------
To unsubscribe, e-mail: bugs-unsubscribe@httpd.apache.org
For additional commands, e-mail: bugs-help@httpd.apache.org


[Bug 54719] httpd should check for and eventually create pid file directory

Posted by bu...@apache.org.
https://issues.apache.org/bugzilla/show_bug.cgi?id=54719

--- Comment #1 from Petr Sumbera <pe...@oracle.com> ---
Created attachment 30139
  --> https://issues.apache.org/bugzilla/attachment.cgi?id=30139&action=edit
Possible fix.

-- 
You are receiving this mail because:
You are the assignee for the bug.

---------------------------------------------------------------------
To unsubscribe, e-mail: bugs-unsubscribe@httpd.apache.org
For additional commands, e-mail: bugs-help@httpd.apache.org