Karen Tung writes:
> Hi,
> 
> I am trying to import a b105 repository on a snv_b101 machine.
> I am setting the repository, the commands and everything to a directory 
> that contain
> the b105 bits.  Import of all manifests except postrun.xml seem to work OK
> that way on my snv_b101 system. 
> 
> I am getting a warning about postrun.xml.
> Looking at the template defined in restarter.xml, I can see that the 
> postrun.xml
> manifest is really missing the stop method.  What I don't understand is 
> why does
> it work on a b105 system without the warning.
> 
> I have narrowed it down to executing the following commands.
> If I execute the following sequence of commands on a b105 system, 
> there's no error or warning.
> But if I execute the same sequence of commands on a b101 system, I got the
> warning about the postrun.xml.
> 
> =========================
> export 
> SVCCFG_DTD=/dpool/105-content/usr/share/lib/xml/dtd/service_bundle.dtd.1
> export SVCCFG_REPOSITORY=/dpool/105-content//etc/svc/repository.db
> export LD_LIBRARY_PATH=/dpool/105-content/lib:/dpool/105-content/usr/lib
> /dpool/105-content/usr/sbin/svccfg import 
> /dpool/105-content/var/svc/manifest/system/svc/restarter.xml
> /dpool/105-content/usr/sbin/svccfg validate 
> /dpool/105-content/var/svc/manifest/system/postrun.xml
> 
> ---------
> Required property group missing: FMRI="svc:/system/postrun:default"; 
> Name of missing property group="stop"; Type of missing property 
> group="method"; Template source="svc:/system/svc/restarter:default"; 
> pg_pattern name="stop"; pg_pattern type="method"
> svccfg: Validation failed.
> ---------
> 
> ===========================
> 
> I couldn't figure out why I don't get the warning on a b105 system.
> Any idea on what else I need to set up on my build 101 system to not get 
> the warning?
> 
> Thanks,
> 
> --Karen
> 
> _______________________________________________
> smf-discuss mailing list
> smf-discuss at opensolaris.org

Karen,

The warning that you are seeing is generated by the Extended Templates
project, PSARC/2008/350 SMF Template Extensions, which permits more
extensive checking of manifests.  You have correctly diagnosed the cause of
the message and that is the postrun.xml manifest does not have a stop
method.

Note that this is only a warning.  Unless you use the -V option of svccfg
import or use svccfg in interactive mode, the manifest will still be
imported despite the warning.

The extended templates project was putback into build 102.  So the
interesting question is why you are not seeing the warning on your 105
system.  If I natively run "svccfg validate
/var/svc/manifest/system/postrun.xml" on my snv_105 system I do see the
message.  If I can login to your 105 system, I'd be happy to look at your
setup.

tom

Reply via email to