Seema
  If I understand right, Apache HTTPd MPM's can be started in one of the 
following ways
1. /usr/apache2/bin/apachectl start (starts the default prefork MPM)
2. /usr/apache2/bin/httpd  -f /etc/apache2/httpd.conf (starts the 
default prefork MPM)
3. /usr/apache2/bin/httpd.worker -f /etc/apache2/httpd.conf (starts the 
worker MPM)
4. svcadm enable network/http/apache2 (currently starts only the prefork 
MPM).

If I understand right, what we want here is a common way to start the 
apache server (both in prefork as well as in worker MPM) using apachectl 
and SMF. Now, to do this, I was wondering, can we not implement in the 
following way

- Add  a new argument 'start-worker'  to apachectl . So that, customers 
can start the server in prefork or worker by using the common (well 
known) apachectl script itself.

for example
apachectl start or apachectl start-prefork (starts the server in prefork 
MPM)
apachectl start-worker (starts the server in worker MPM)

- Leverage the already existing /lib/svc/method/http-apache2 script  
used by SMF to start the server in prefork or in woker depending upon 
the SMF property.  I was hoping , we can do this in the same way as this 
script 'http-apache2' does for starting the server in SSL or non-SSL mode.

Thanks
sriram

Seema Alevoor wrote:
>>> I believe the answer is both - SMF and apachectl.
>>>       
>> Then we need to have a file which sets HTTPD variable and apachectl should 
>> source
>> this.
>> As suggested earlier, we can move envvars to /var/apache2 and
>> use this file to set HTTPD.
>>     
>
> What will be the name of the smf wrapper script ?
> Can we consider /usr/<apache2dir>/bin/apachectl.smf ?
>
> -- Seema.
> _______________________________________________
> webstack-discuss mailing list
> webstack-discuss at opensolaris.org
> http://mail.opensolaris.org/mailman/listinfo/webstack-discuss
>   

Reply via email to