-
-
<?xml version='1.0'?>
-
<!DOCTYPE service_bundle SYSTEM '/usr/share/lib/xml/dtd/service_bundle.dtd.1'>
-
<service_bundle type='manifest' name='WISWsamba:samba'>
-
<service name='site/samba' type='service' version='0'>
-
<create_default_instance enabled="false"/>
-
<single_instance />
-
<!--
-
First of all, if the config file is not present,
-
then we needn't bother with anything else.
-
-->
-
<dependency name="config-file" grouping="require_all" restart_on="none" type="path">
-
<service_fmri value="file:///etc/sfw/smb.conf"/>
-
</dependency>
-
-
<!--
-
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='optional_all' restart_on='error' type='service'>
-
<service_fmri value='svc:/network/physical:default'/>
-
</dependency>
-
-
<!--
-
Since Samba may be providing a home directory service,
-
it is as well that we ensure that the file-systems are
-
all mounted before it is started. This is not essential
-
but in general it is a good thing and doesn't really hurt.
-
-->
-
<dependency name='fs-local' grouping='require_all' restart_on='none' type='service'>
-
<service_fmri value='svc:/system/filesystem/local'/>
-
</dependency>
-
-
<!--
-
now we have the start stop and refresh methods
-
-->
-
<exec_method name='start' type='method' exec='/opt/local/lib/svc/method/samba start' timeout_seconds='60'>
-
<method_context />
-
</exec_method>
-
<exec_method name='stop' type='method' exec='/opt/local/lib/svc/method/samba stop' timeout_seconds='60'>
-
<method_context />
-
</exec_method>
-
-
<property_group name='samba' type='application'>
-
<stability value='Evolving'/>
-
</property_group>
-
<property_group name='startd' type='framework'>
-
<propval name='ignore_error' type='astring' value='core,signal'/>
-
</property_group>
-
-
<stability value='Evolving'/>
-
<!--
-
A description of the Service
-
-->
-
<template>
-
<common_name>
-
<loctext xml:lang='C'>Samba Server</loctext>
-
</common_name>
-
<documentation>
-
<manpage title='samba' section='1M'/>
-
<doc_link name='samba.org' uri='http://httpd.samba.org'/>
-
</documentation>
-
</template>
-
</service>
-
</service_bundle>
-