Stephen Hahn writes: > * Srinivas Krishnan <Srinivas.Krishnan at Sun.COM> [2007-02-16 01:15]: > > My observation why service goes to initialized state is Property Group > > restarter and restarter_actions does not get created when the service is > > created using Java API's. > > > > But when we reimport the manifest file restarter and restarter_actions > > are getting created. How to create restarter and restarter_actions > > property group elements using Java API's. What are the property elements > > need to be set ? > > You shouldn't have to create those property groups, unless you're > writing a delegated restarter.
This is true. > You do need to make sure > general/restarter is set to a legitimate value so that a restarter > takes responsibility for your service instance. No, you don't. If the property is undefined, it defaults to using svc.startd as the restarter. (Recent versions of svc.startd(1M) document this.) If it's set to a restarter that doesn't exist or doesn't act as a restarter, that's different.... (But doesn't seem to be the case here.) liane -- Liane Praza, Solaris Kernel Development liane.praza at sun.com - http://blogs.sun.com/lianep