Hi,
> The intent is to configure the startup options in smf as you mention.
> There's been some prior discussion on the ordering of script calls
> but the public interface will be smf (apachectl will work too).
> (List archives at http://opensolaris.org/os/project/webstack/Mailing_LIsts/)
>
> Seema, if you have a chance to summarize the smf/apachectl interaction
> implementation details discussion, that might be useful.
>
>
Please take a look at the DRAFT Apache ARC case
( http://wikis.sun.com/display/WebStack/Apache+HTTP+Server )
to get an idea of what is being planned for Web Stack's Apache.
Please feel free to post your comments to this alias.
As you suggested, we need to fix the issues in the existing script. But,
we do intend to retain /lib/svc/method/http-apache2 service method script
so that it handles all the SMF specific checks and then invokes the
appropriate apachectl with the required options.
This way we will minimize the changes to apachectl script which is
expected to
behave the same as before.
For e.g, http-apache2 method script can check the "version" SMF property and
choose Apache's path based on the this property as below
-----------------------
...
APACHE_USR_ROOT=/usr/apache2
APACHE_CONF_ROOT=/etc/apache2
APACHE_RUN_ROOT=/var/run/apache2
APACHE_VERSION_PROP=`svccfg -s $SMF_FMRI listprop httpd/version`
if ( <version property specified> ) {
APACHE_VERSION=`svcprop -p httpd/version $SMF_FMRI`
APACHE_USR_ROOT=${APACHE_USR_ROOT}/${APACHE_VERSION}
APACHE_CONF_ROOT==${APACHE_CONF_ROOT}/${APACHE_VERSION}
APACHE_RUN_ROOT=${APACHE_RUN_ROOT}/${APACHE_VERSION}
}
APACHE_HOME=${APACHE_USR_ROOT}
CONF_FILE=${APACHE_CONF_ROOT}/httpd.conf
PIDFILE=${APACHE_RUN_ROOT}/httpd.pid
...
...
-----------------------
Regards,
Seema.