PidFile directive


Purpose

The PidFile directive sets the file to which httpd records the daemon process id.

This directive is used only if ServerType is standalone.


Syntax

PidFile file

file is the name of the file to which the process id is logged. It is either a full pathname, or a partial pathname relative to ServerRoot.

Only one PidFile directive is allowed in the configuration file.


Default

If you do not specify a PidFile, httpd assumes:

PidFile logs/httpd.pid


Examples

PidFile logs/pid

This logs the process id to the file logs/pid in the ServerRoot directory.

TransferLog /tmp/httpd-pid

This logs the process id to the file /tmp/httpd-pid.

PidFile /dev/null

The server does not log its process id.


Return to Server Configuration File Overview

httpd@ncsa.uiuc.edu