I am trying to create service using Java SMF api's. Downloaded from 
http://opensolaris.org/os/project/vpanels/javascf/.

The xml exported from the database looks as follows

<?xml version='1.0'?>
<!DOCTYPE service_bundle SYSTEM 
'/usr/share/lib/xml/dtd/service_bundle.dtd.1'>
<service_bundle type='manifest' name='export'>
  <service 
name='application/webserver/space_ws7_feb6_iplanet_ias_server_work_B1_SunOS5_9_i86pc_DBG_OBJ'
 
type='service' version='0'>
    <instance name='admin-server' enabled='false'>
      <property_group name='start' type='method'>
        <propval name='exec' type='astring' 
value='/space/ws7/feb6/iplanet/ias/server/work/B1/SunOS5.9_i86pc_DBG.OBJ/admin-server/bin/startserv
 
-smf'/>
        <propval name='timeout' type='astring' value='60'/>
      </property_group>
      <property_group name='stop' type='method'>
        <propval name='exec' type='astring' 
value='/space/ws7/feb6/iplanet/ias/server/work/B1/SunOS5.9_i86pc_DBG.OBJ/admin-server/bin/stopserv
 
-smf'/>
        <propval name='timeout' type='astring' value='60'/>
      </property_group>
      <property_group name='restart' type='method'>
        <propval name='exec' type='astring' 
value='/space/ws7/feb6/iplanet/ias/server/work/B1/SunOS5.9_i86pc_DBG.OBJ/admin-server/bin/restart
 
-smf'/>
        <propval name='timeout' type='astring' value='60'/>
      </property_group>
      <property_group name='startd' type='framework'>
        <propval name='ignore_error' type='astring' value='core,signal'/>
      </property_group>
    </instance>
    <instance name='https-test' enabled='false'>
      <property_group name='start' type='method'>
        <propval name='exec' type='astring' 
value='/space/ws7/feb6/iplanet/ias/server/work/B1/SunOS5.9_i86pc_DBG.OBJ/https-test/bin/startserv
 
-smf'/>
        <propval name='timeout' type='astring' value='60'/>
      </property_group>
      <property_group name='stop' type='method'>
        <propval name='exec' type='astring' 
value='/space/ws7/feb6/iplanet/ias/server/work/B1/SunOS5.9_i86pc_DBG.OBJ/https-test/bin/stopserv
 
-smf'/>
        <propval name='timeout' type='astring' value='60'/>
      </property_group>
      <property_group name='restart' type='method'>
        <propval name='exec' type='astring' 
value='/space/ws7/feb6/iplanet/ias/server/work/B1/SunOS5.9_i86pc_DBG.OBJ/https-test/bin/restart
 
-smf'/>
        <propval name='timeout' type='astring' value='60'/>
      </property_group>
      <property_group name='refresh' type='method'>
        <propval name='exec' type='astring' 
value='/space/ws7/feb6/iplanet/ias/server/work/B1/SunOS5.9_i86pc_DBG.OBJ/https-test/bin/reconfig
 
-smf'/>
        <propval name='timeout' type='astring' value='60'/>
      </property_group>
      <property_group name='startd' type='framework'>
        <propval name='ignore_error' type='astring' value='core,signal'/>
      </property_group>
    </instance>
  </service>
</service_bundle>

Since restarter is not available the service goes to uninitialized 
state. Any thoughts on this?

Srinivas
Renaud Manus wrote:

> When a service goes into the uninitialized state, it usually means
> that its restarter is not running.
>
> what is the service you're trying to enable?
> what does svcs -xv report?
> does it work without the -t option?
>
> -- Renaud
>
> -------- Original Message  --------
> Subject: [smf-discuss] Service State - Uninitialized
> From: Srinivas Krishnan <Srinivas.Krishnan at Sun.COM>
> To: smf-discuss at opensolaris.org
> Date: Wed Feb 14 2007 12:27:12 GMT+0100 (CET)
>
>> David,
>>
>> When the service is enabled using -t option
>>
>> svcadm enable -t <svc_name>
>>
>> brings the service state to uninitialized. But the service is 
>> required to go to enabled state. Why this is happening.
>>
>> Thanks
>> Srinivas
>> _______________________________________________
>> smf-discuss mailing list
>> smf-discuss at opensolaris.org
>
>


Reply via email to