Quoth David Powell on Mon, May 15, 2006 at 05:41:21PM -0700: > On Mon, May 15, 2006 at 05:02:41PM -0700, Frank Cusack wrote: > > If I try to import a manifest in a non-running zone (install and run > > svccfg using chroot), I get the error > > > > svccfg: Could not connect to repository server: repository server > > unavailable. > > > > which is fine. My question is, how can I tell if the repository server is > > available? > > A repository server is normally only available if the system is up > and running. In non-live situations, you can tell svccfg to look at > a specific repository by using the 'repository' subcommand. This is > a dangerous, however, if someone else is doing the same thing (e.g. > if the zone *is* running).
It's also unreliable, in case we've changed the format of the repository. I suppose this isn't an issue for zones... yet. > > Truss in a running zone shows svccfg opening > > /etc/svc/volatile/repository_door. Since this must be a well known name, > > can I depend on it being stable? > > It's well known... to the SMF commands and libraries. To all others, > it is a private implementation detail and should not be considered > stable. You can use smf_present() from /lib/svc/share/smf_include.sh , though. David