gnustep-dev
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: apache.make


From: Helge Hess
Subject: Re: apache.make
Date: Mon, 27 Nov 2000 16:31:34 +0100

Hi,

Nicola Pero wrote:
> > I think about something which is like the mod_env module, only
> > specialized for the GNUstep environment and affecting the current Apache
> > process.
> >
> > The sequence in httpd.conf could look like:
> OK - fine - makes sense this way.
> 
> It involves writing a new C module mod_gnustep_config [or what the name] -
> do you think it would make sense to have this module simply execute
> 
> /GNUSTEP_ROOT_PATH_READ_FROM_CONF_FILE/System/Makefiles/GNUstep.sh and
> /GNUSTEP_ROOT_PATH_READ_FROM_CONF_FILE/System/Makefiles/ld_lib_path.sh
> 
> after reading the configure directive ?  Because to me it seems really
> better not to duplicate the shell code which sets up GNUstep.

No, it's not *that* easy ! Just executing the shell files won't help
you, since they do not modify the environment of the parent process (the
Apache), but only in the forked shell !

What could work is forking a process which returns the environment, eg
this:

  #!/bin/sh
  source GNUstep.sh
  env

The calling Apache module would need to parse the output of 'env' and
set the appropriate environment in the parent process (eg using
setenv()).

Not *that* difficult, but some work nevertheless.

BTW: Using such a directive also has the advantage that it is configured
based on the Apache user (often 'www'), not on the user which starts
Apache (usually 'root').

Greetings
  Helge
-- 
SKYRIX Software AG - http://www.skyrix.com



reply via email to

[Prev in Thread] Current Thread [Next in Thread]