Quoth Srinivas Krishnan on Wed, Feb 28, 2007 at 05:35:18PM +0530: > Can anyone in the group can review my java implementation (Enclosed > SMFUtil.java) of creating services and instances using API's downloaded > from http://opensolaris.org/os/project/vpanels/javascf/.
Not the SMF team per se. That API is owned by the "Visual Panels" team, which is lead by David Powell. Contact him for review. > Also creating services using Java API's does not create restarters so > the services if started using enable -t option causes the service to go > to uninitialized state. So for this we export the service details using > svccfg export <svcname> and again import the xml using svccfg import > <svcname>, then the SMF creates restarters and the start of service > causes the service to go to online state. Please let us know if it is > something wrong i am doing in using the java API or is there any bug in > the Java API. We don't support the Java API, so for bugs in it you'll have to contact David Powell as above. If it is working properly, then "uninitialized" means that your service's restarter hasn't taken responsibility for your service. Verify that the value of the general/restarter property for your service is correct. (inetd and the Sun Cluster restarter are the only restarters beside svc.startd that I know of, so "svc:/network/inetd:default" and the FMRI for the Sun Cluster restarter (I don't know what it is) are the only valid values that I know of.) David