This is expected, you have defined system/zones as a dependent of test 
with an 'optional_all' dependency type. Change the type to "require_all"
if you don't want system/zones to start when test fails to start.

-- Renaud

-------- Original Message  --------
Subject: [smf-discuss] dependency ignored?  help please..
From: Christophe Kalt <opensola...@ote.taranis.org>
To: smf-discuss at opensolaris.org
Date: Mon Feb 12 2007 15:51:19 GMT+0100 (CET)

> Hi all,
> 
> i wrote a manifest to add a new service to do some prep-work before zones are 
> started on our systems, but i find that the dependency is ignored and the 
> "zones" service always starts.  My service is currently called "test", and 
> zones is made to depend on it by this bit in text.xml:
> 
>         &lt;dependent
>                 name='zones-test'
>                 grouping='optional_all'
>                 restart_on='none'>
>                 &lt;service_fmri value='svc:/system/zones' />
>         &lt;/dependent>
> 
> This seems to properly register:
> 
> $ svcs -D test
> STATE STIME FMRI
> online 14:13:11 svc:/system/zones:default
> $ svcs -d zones
> STATE STIME FMRI
> online 14:13:10 svc:/milestone/multi-user-server:default
> maintenance 14:13:08 svc:/system/test:default 
> 
>>From STIME, you can tell that test failed before zones came online.
> 
> What am i missing?
> 
> FYI, this is Solaris 6/06 + patches available as of early this year, on x86.
>  
>  
> This message posted from opensolaris.org
> _______________________________________________
> smf-discuss mailing list
> smf-discuss at opensolaris.org


Reply via email to