> > There are hundreds of ways to add such a check within the rc files.
>
> Could you name one? I can't think of any, but I'm not sure I'm thinking
> along the same lines you are.
Aside from the one Greg mentioned, you can also
- use another config file as a list of enabled services
- use another config file that set environment variables and test them
(this is what Linux typically does)
- use a specific format for the httpd config file that inserts a
comment before each Listen directive identifying it by service
- use a separate httpd instance for each service (recommended because
IPP doesn't have even remotely the same application profile as a
normal Web server and thus needs different request limits)
- egrep the httpd config file for Listen directives
In short, if it is possible for Apache to know what its config will be,
it is possible for a script to know it as well.
But if you want my recommendation, just don't install a Web server by
default. It is a dumb idea regardless of how many OSes do it already.
A Web server needs to be carefully set up, just like any network service.
....Roy