Hi

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 ?

Regards
Srinivas

Renaud Manus wrote:

> Apply the following patches to the system
> 119686-09
> 121289-02
>
> - restart startd : pkill -9 svc.startd
>
> if it doesn't fix the problem, I'll need root access.
>
> Regards,
> Renaud
>
>
> -------- Original Message  --------
> Subject: Re:[smf-discuss] Service State - Uninitialized
> From: Srinivas Krishnan <Srinivas.Krishnan at Sun.COM>
> To: Renaud.Manus at Sun.COM
> Date: Thu Feb 15 2007 10:33:54 GMT+0100 (CET)
>
>> machine name is caitanya.india.sun.com
>> the service name is 
>> application/webserver/space_ws7_feb6_iplanet_ias_server_work_B1_SunOS5_9_i86pc_DBG_OBJ
>>  
>>
>>
>> -Srinivas
>> Renaud Manus wrote:
>>
>>> can you give me access to the machine?
>>>
>>> -------- Original Message  --------
>>> Subject: Re:[smf-discuss] Service State - Uninitialized
>>> From: Srinivas Krishnan <Srinivas.Krishnan at Sun.COM>
>>> To: Renaud.Manus at Sun.COM
>>> Cc: smf-discuss at opensolaris.org
>>> Date: Wed Feb 14 2007 13:49:27 GMT+0100 (CET)
>>>
>>>> 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
>>>>>
>>>>>
>>>>>
>>>>>
>>>>
>>>> _______________________________________________
>>>> smf-discuss mailing list
>>>> smf-discuss at opensolaris.org
>>>
>>>
>>>
>>
>


Reply via email to