Quoth Joseph on Tue, Jun 20, 2006 at 01:11:38PM -0700:
> I have a package which installes under /opt under normal scenarios,
> and i have an svc xml file which i import from
> /var/svc../managemtn/app1.xml. The "exec" method contains absolute
> path to my exe, ie /opt/../app1. Now if i use pkgadd -R
> <alternateroot>, it gets installed under that path. But what to do
> with svccfg import? because it expects the application to be present
> under /opt/ and not under <alternate_root>/opt.
> 
> How to handle this scenario? This is infact required for jump start
> installation too.

You should declare the manifest to be in the "manifest" class.  On
Solaris 10 Update 2 (or Solaris 10 with patch 121901 or 121902), the
manifest will be installed with the i.manifest class action script,
which will appropriately install your manifest, even on another root.

(This is implemented by simply copying the manifest into
/var/svc/manifest, and allowing the manifest-import service to import
the manifest on boot.)


David

Reply via email to