AW: apache resource script patch
"Martin Bene" <[email protected]> Thu, 9 May 2002 18:17:48 +0200
| Newsgroups | gmane.linux.failsafe |
|---|---|
| Message-ID | <[email protected]> |
> Von: Lars Marowsky-Bree [mailto:[email protected]], 09. Mai 2002 16:19 > > * there's no way to specify additional comandline > > parameters. > I don't like this part of the patch. This can be specified in > the config file; OK, true, config file is better. > > * for some setups, I need some aditional stuff set up, > > like ulimit, > > environment variables (oracle DB access)... > > I don't like this either; I think you should be able to set > 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. 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