Perfect, execute the process in background and state is online, but when 
disable the service, it state is maintenance, not kill the process

<exec_method type='method' 
                                         name='stop' 
                                         exec=':kill -TERM' 
                                         timeout_seconds='60'>
                        <method_context>
                                <method_credential user='scpadmin' 
group='scpadmin'/>
                                <method_environment>
                                        <envvar name='PATH' 
value='/usr/bin:/usr/sbin:/opt/scp/bin'/>
                                        <envvar name='LD_LIBRARY_PATH' 
value='/opt/nms/lib:/opt/nmstx/lib:/export/home/scpadmin/TimesTen/tt70/lib'/>
                                </method_environment>
                        </method_context>
                </exec_method>

LOG is:

[ feb 18 10:35:29 Executing start method ("scpServer 
/opt/scp/config/scpServer.scpasub.xml &") ]
[ feb 18 10:35:29 Ignoring duplicate environment variable 
"PATH=/usr/sbin:/usr/bin". ]
[ feb 18 10:35:29 Method "start" exited with status 0 ]
[ feb 18 10:38:49 Stopping because service disabled. ]
 
 
This message posted from opensolaris.org

Reply via email to