On Sun, Sep 5, 2010 at 8:10 AM, Karel Gardas <karel.gar...@centrum.cz> wrote: > Hello, > is it possible to configure kind of dependency between NTP service startup > and zone startup? The issue here is that I'm using virtual router created in > one zone on the workstation and during the workstation boot NTP service is > not able to locate NTP servers since the network connection is not working > due to not yet booted router zone. > Thanks, > Karel
My first instinct is to add a dependency on svc:/system/zones:default. However, I think there is likely a race condition in that this service will likely be online before the zones are actually fully up. In particular, svc:/system/zones:default in the global zone may come online prior to the appropriate routing related service in the non-global zone. Another approach would be to introduce a transient service that calls a start script that does something like: #! /bin/ksh zone=... svc=... # svc:/network/routing/route:default ? function zonestate { zoneadm -z "$1" list -p | awk -F: '{print $3}' } while [[ "$(zonestate $zone)" != running ]] ; do echo "Waiting for $zone to start" sleep 1 done zlogin $zlone svcadm enable -t $svc This new service could then list svc:/network/ntp:default as "dependent" on this new service. An example of using "dependent" can be seen in /var/svc/manifest/system/metainit.xml to cause svc:/system/metainit:default to (e.g.) come up in single user mode. -- Mike Gerdts http://mgerdts.blogspot.com/ _______________________________________________ opensolaris-discuss mailing list opensolaris-discuss@opensolaris.org