Process Understanding

Cameron Simpson cs at zip.com.au
Mon Feb 5 22:14:12 UTC 2007


On 05Feb2007 11:07, Dan Track <dan.track at gmail.com> wrote:
| >However, a web server startup is not a login shell. The web server is
| >simply invoked, typically from an init script. The login shell of the
| >user is not involved at all.
| 
| Thanks for the reply. If the web server user does not have a login
| shell then where does the daemon get its environment variables from?

It will have next to nothing. A "stock" install of apache will usually
start from the script /etc/init.d/httpd on Fedora systems. You could
edit that file and insert this command:

  env | sort

which will dump the current environment when the script runs. That will
be illuminating during boot. If you start things from a root login shell,
it will start with root's environment (and that will come via root's
login shell startup).

It is also possible to configure environment values inside Apache's
config files as I recall.
-- 
Cameron Simpson <cs at zip.com.au> DoD#743
http://www.cskk.ezoshosting.com/cs/

Remember: Politicians just want to be your friend if you give them half a
          chance...
          and shove them into a corner...
          hard.
        - Peter Harper <bo165 at freenet.carleton.ca> <harperp at algonquinc.on.ca>




More information about the fedora-list mailing list