[csw-users] Mysql5 SMF question...

Brian Gupta brian.gupta at gmail.com
Sun Dec 2 22:11:11 CET 2007


I guess this might be more of a general SMF question, but here goes.

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

I get:

<?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>

Is this the full SMF manifest? If so how does SMF know how to restart mysql
if I manually kill the process 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/
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.opencsw.org/pipermail/users/attachments/20071202/2afed91a/attachment-0002.html>


More information about the users mailing list