When I run:  "svccfg export svc:/network/cswmysql5"

I get the manifest below:

<?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='network/cswmysql5' type='service' version='0'>
    <create_default_instance enabled='true'/>
    <single_instance/>
    <dependency name='fs' grouping='require_all' restart_on='none'
type='service'>
      <service_fmri value='svc:/system/filesystem/local'/>
    </dependency>
    <dependency name='net' grouping='require_all' restart_on='none'
type='service'>
      <service_fmri value='svc:/network/loopback'/>
    </dependency>
    <dependent name='cswmysql5_multi-user' restart_on='none'
grouping='optional_all'>
      <service_fmri value='svc:/milestone/multi-user'/>
    </dependent>
    <exec_method name='start' type='method'
exec='/opt/csw/lib/svc/method/svc-mysql5 start'
timeout_seconds='18446744073709551615'>
      <method_context/>
    </exec_method>
    <exec_method name='stop' type='method' exec=':kill'
timeout_seconds='18446744073709551615'>
      <method_context/>
    </exec_method>
    <exec_method name='restart' type='method'
exec='/opt/csw/lib/svc/method/svc-mysql5 restart'
timeout_seconds='18446744073709551615'>
      <method_context/>
    </exec_method>
  </service>
</service_bundle>

How does SMF know how to restart mysql if I manually kill the mysql
process(es) using "kill"? (It seems that the manifest doesn't indicate a
restart.)

This is probably just a hole in my understanding of SMF.

Cheers,
Brian

-- 
- Brian Gupta

http://opensolaris.org/os/project/nycosug/



-- 
- Brian Gupta

http://opensolaris.org/os/project/nycosug/



-- 
- Brian Gupta

http://opensolaris.org/os/project/nycosug/
-------------- next part --------------
An HTML attachment was scrubbed...
URL: 
<http://mail.opensolaris.org/pipermail/smf-discuss/attachments/20071203/cc698051/attachment.html>

Reply via email to