ainul hizriadi wrote:
> I hope I'm not in the wrong forum.
> 
> I'm running Solaris Express build 111.
> 
> I want to assigning a project to the apache's service that already running in 
> my system.
> 
> I have followed the instructions as written in this link
> http://www.c0t0d0s0.org/archives/4209-Less-known-Solaris-Features-Resource-Management-Part-6-Resource-Management-and-SMF.html
> 
> and also this link 
> http://hub.opensolaris.org/bin/view/Community+Group+smf/faq#toc33
> at the question number 2.19 and 4.10

You really want the answer to 2.19.  If you modify the XML of a 
system-supplied manifest, it will be overwritten the next time you 
upgrade and the system provides a new version of the manifest.

(In build 113 Sean also putback a fix for bug 6517270 to make the 
steps in section 2.19 much much shorter.  I'd say we should update 
the FAQ, but if you're running 111, you'll need to go through the 
full set of instructions anyways.)

But, as to your specific question...

> 
> But, i still got this error
> 
> svccfg import /var/svc/manifest/network/http-apache22.xml failed
> svccfg warnings:
> /var/svc/manifest/network/http-apache22.xml:85: parser error : AttValue: " or 
> ' expected
>                               project=group.webservd' >
>                                       ^
> /var/svc/manifest/network/http-apache22.xml:85: parser error : attributes 
> construct error
>                               project=group.webservd' >
>                                       ^
> /var/svc/manifest/network/http-apache22.xml:85: parser error : Couldn't find 
> end of Start Tag method_context line 84
>                               project=group.webservd' >

[...]

> 
> This is a change that I did on my /var/svc/manifest/network/http-apache22.xml 
> file
> 
>       <exec_method
>                       type='method'
>                       name='start'
>                       exec='/lib/svc/method/http-apache22 start'
>                       timeout_seconds='0'/>
>                       <method_context
>                               project=group.webservd' >

Based on the errors above, there seems to be a typo on this line. 
It should be
                                project='group.webservd' >
You're missing a single quote.

Looks like that's a typo in the faq too.  Sorry about that.  I've 
fixed it.

liane

Reply via email to