AW: [LinuxFailSafe] apache resource script patch
Martin Bene
martin.bene@icomedias.com
Thu, 9 May 2002 18:17:48 +0200
> Von: Lars Marowsky-Bree [mailto:lmb@suse.de], 09. Mai 2002 16:19
> > * there's no way to specify additional comandline=20
> > parameters.=20
> I don't like this part of the patch. This can be specified in=20
> the config file;
OK, true, config file is better.
> > * for some setups, I need some aditional stuff set up,=20
> > like ulimit,
> > environment variables (oracle DB access)...
>=20
> I don't like this either; I think you should be able to set=20
> this in the configuration file (except maybe the ulimit).
I don't like it very much either, but I can't come up with a better
alternative. Take apache with php+oracle as an example. The oracle =
client
library uses a couple of environment variables to get name resolution, =
char
set etc. right. if this stuff isn't set in the environemnt before apache
starts, you just won't get oracle database stuff running without =
problems.
trying to work around this using "putenv" calls from php doesn't work.=20
Wishing to have (resource-specific) larger number of filehandles =
configured
via ulimit -n just for some apache instances also seems reasonable and
definitely can't be done without some kind of script.
An alternative would be to not call the apache httpd binary directly but
instead use an intermediary script (/usr/sbin/apache?) that can do the
necessary setup before actually starting httpd. Needs to duplicate the
"where is the real httpd" functionality and has to decide what =
preparatory
stuff to run depending on config file or server root parameter. can't =
say I
like it very much though, having a callout in the resource configuration
seems less obscure.
Bye, Martin