Where does stop get called by SMF ?

 > [ May 23 13:39:56 Enabled. ]
 > [ May 23 13:39:56 Executing start method
 > ("/opt/SUNWappserver/sbin/asadmin start-domain --user admin
 > --passwordfile /opt/SUNWappserver/domain1_passwd --domaindir
 > /var/opt/SUNWappserver/domains domain1") ]
 > Starting Domain domain1, please wait.
 > Log redirected to /var/opt/SUNWappserver/domains/domain1/logs/server.log.
 > Could not stop the domain domain1. Domain is starting.
 > CLI156 Could not start the domain domain1.
 > [ May 23 14:00:33 Method "start" exited with status 1 ]

 From the log, we can see the start method exiting with status 1
because "CLI156 Could not start the domain domain1.".
You should investigate why the domain could not be started.
Maybe there is a timeout proper to asadmin...

-- Renaud

-------- Original Message  --------
Subject: [smf-discuss] SMF timwout when starting a service
From: Greg Asselin <greg.asse...@sun.com>
To: smf-discuss at opensolaris.org, roy Pillay <Roy.Pillay at Sun.COM>
Date: Wed May 23 2007 23:17:26 GMT+0200 (CEST)

> Hi,
> 
> I have an SMF manifest to start / stop the DAS (Sun Application Server 
> 8.1 EE).
> 
> The DAS is quite large, and as a result takes ~43 min to start.
> The SMF manifest is attached below.  Executing "svcadm enable das" 
> result in the service going into maintenance after 20 min, but the DAS 
> does still starts after 43min.
> So even though the DAS does get started successfully in 43 min, SMF 
> shows the following. # svcs | grep das
> # maintenance     1:40:10 svc:/application/das:default
> 
> I have also tried "svcadm enable -s das" with the same result.  In 
> addition I have tried -1 in the manifest instead of 0 for timeout_seconds.
> 
> The service log is also attached below.  (Note: stop gets called by SMF 
> after 20 (It seems to timeout) but the das is still starting)
> 
> What is needed to correct this?
> 
> Thanks for the help,
> Greg
> 
> ----------------------------------------------------------------------------------------------
>  
> 
> <!DOCTYPE service_bundle SYSTEM 
> '/usr/share/lib/xml/dtd/service_bundle.dtd.1'>
> <service_bundle type='manifest' name='export'>
>  <service name='application/das' type='service' version='0'>
>    <create_default_instance enabled='true'/>
>    <single_instance/>
>    <exec_method name='start' type='method' 
> exec='/opt/SUNWappserver/sbin/asadmin start-domain --user admin 
> --passwordfile /opt/SUNWappserver/domain1_passwd --domaindir 
> /var/opt/SUNWappserver/domains domain1' timeout_seconds='0'>
>      <method_context>
>        <method_credential user='appservd' privileges='basic'/>
>      </method_context>
>      <stability value='Evolving'/>
>    </exec_method>
>    <exec_method name='stop' type='method' 
> exec='/opt/SUNWappserver/sbin/asadmin stop-domain --domaindir 
> /var/opt/SUNWappserver/domains domain1' timeout_seconds='0'>
>      <method_context>
>        <method_credential user='appservd'/>
>      </method_context>
>      <stability value='Evolving'/>
>    </exec_method>
>    <stability value='Evolving'/>
>    <template>
>      <common_name>
>        <loctext xml:lang='C'>Appserver Domain Administration 
> Server</loctext>
>      </common_name>
>      <documentation>
>        <manpage title='Appserver' section='1' 
> manpath='/opt/SUNWappserver/appserver/man'/>
>      </documentation>
>    </template>
>  </service>
> </service_bundle>
> ----------------------------------------------------------------------------- 
> 
> [ May 23 13:39:56 Enabled. ]
> [ May 23 13:39:56 Executing start method 
> ("/opt/SUNWappserver/sbin/asadmin start-domain --user admin 
> --passwordfile /opt/SUNWappserver/domain1_passwd --domaindir 
> /var/opt/SUNWappserver/domains domain1") ]
> Starting Domain domain1, please wait.
> Log redirected to /var/opt/SUNWappserver/domains/domain1/logs/server.log.
> Could not stop the domain domain1. Domain is starting.
> CLI156 Could not start the domain domain1.
> [ May 23 14:00:33 Method "start" exited with status 1 ]
> 
> 
> 
> _______________________________________________
> smf-discuss mailing list
> smf-discuss at opensolaris.org


Reply via email to