Re: Process Understanding



On 05Feb2007 11:07, Dan Track <dan.track@xxxxxxxxx> 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@xxxxxxxxxx> 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@xxxxxxxxxxxxxxxxxxx> <harperp@xxxxxxxxxxxxxxxx>

--
fedora-list mailing list
fedora-list@xxxxxxxxxx
To unsubscribe: https://www.redhat.com/mailman/listinfo/fedora-list



Relevant Pages

  • Re: Process Understanding
    ... | their environment, especially env variables. ... a web server startup is not a login shell. ...
    (Fedora)
  • Re: [PHP] Environment variables...
    ... Stuff you cram into your environment has no effect on that, ... It runs as whatever user runs the php script. ... So, if the script is being run by a web server, it runs as whomever the web server runs as. ...
    (php.general)
  • Re: wife-proof way to launch ppp?
    ... enhanced text field, that doesn't really matter. ... You could settle on having her login shell ... You could even start X with a script from her ... Does that mac support running NetBSD? ...
    (comp.unix.bsd.freebsd.misc)
  • Re: crontab and scripts
    ... that when I execute this script from console ... non-interactive shell, it will not parse the environment variables set ... for a login shell, and the /$PATH/ variable is one of them. ...
    (comp.os.linux.misc)
  • Xterm/Login hangs after starting remote service
    ... I`m loggin into a remote site via ssh from an existing login shell. ... Then I start a program using a start script. ... I then have to kill the xterm session completely. ... standard output and does not redirect the output to a file - but that's ...
    (comp.os.linux.setup)