Current File : //var/svc/manifest/site/rsync.xml
<?xml version="1.0"?>
<!DOCTYPE service_bundle SYSTEM "/usr/share/lib/xml/dtd/service_bundle.dtd.1">

<service_bundle type="manifest" name="rsync">

  <service name="network/rsync" type="service" version="4">

    <create_default_instance enabled="false"/>

    <single_instance/>

    <!--
    If there's no network, then there's no point in running 
    -->
    <dependency
      name="loopback"
      grouping="require_all"
      restart_on="error"
      type="service">
      <service_fmri value="svc:/network/loopback:default"/>
    </dependency>

    <dependency
      name="physical"
      grouping="require_all"
      restart_on="error"
      type="service">
      <service_fmri value="svc:/network/physical:default"/>
    </dependency>

    <dependency
      name="fs-local"
      grouping="require_all"
      restart_on="none"
      type="service">
      <service_fmri value="svc:/system/filesystem/local"/>
    </dependency>

    <exec_method
      type="method"
      name="start"
      exec="/usr/local/bin/rsync --daemon"
      timeout_seconds="60"/>

    <exec_method
      type="method"
      name="stop"
      exec=":kill"
      timeout_seconds="60"/>

    <exec_method
      type="method"
      name="refresh"
      exec=":kill -HUP"
      timeout_seconds="60"/>

    <stability value="Unstable"/>

    <template>
      <common_name>
        <loctext xml:lang="C">RSYNC daemon</loctext>
      </common_name>

      <documentation>
        <manpage title="rsync" section="7"/>
        <doc_link name="rsync.org" uri="http://www.rsync.org/docs/"/>
      </documentation>
    </template>
  </service>
</service_bundle>