summaryrefslogtreecommitdiff
path: root/debian/bind9.smf/manifest/network/dns/bind9.xml
blob: 174a0037c5fd0cd4278b2099ace7f7cda97fcd78 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
<?xml version="1.0"?>
<!DOCTYPE service_bundle SYSTEM "/usr/share/xml/schema/smf/service_bundle.dtd.1">
<service_bundle type="manifest" name="bind9">
  <service name="network/dns/bind9" type="service" version="1">
    <create_default_instance enabled="false"/>
    <dependency name="filesystem" grouping="require_all" restart_on="error" type="service">
      <service_fmri value="svc:/system/filesystem/local"/>
    </dependency>
    <dependency name="net-loopback" grouping="require_all" restart_on="none" type="service">
      <service_fmri value="svc:/network/loopback"/>
    </dependency>
    <dependency name="net-physical" grouping="require_all" restart_on="restart" type="service">
      <service_fmri value="svc:/network/physical"/>
    </dependency>
    <dependency name="syslog" grouping="optional_all" restart_on="none" type="service">
      <service_fmri value="svc:/system/system-log"/>
    </dependency>
    <exec_method type="method" name="start" exec="/usr/sbin/named -c %{config_file} -u %{user} -p %{port}" timeout_seconds="60"/>
    <exec_method type="method" name="stop" exec="/usr/sbin/rndc stop" timeout_seconds="60"/>
    <exec_method type="method" name="refresh" exec="/usr/sbin/rndc reload" timeout_seconds="60"/>
    <property_group name="application" type="application">
      <propval name="config_file" type="astring" value="/etc/bind/named.conf"/>
      <propval name="user" type="astring" value="bind"/>
      <propval name="port" type="integer" value="53"/>
    </property_group>
    <template>
      <common_name>
        <loctext xml:lang="C">
          Bind9 DNS server
        </loctext>
      </common_name>
      <documentation>
        <manpage title="named" section="8" manpath="/usr/share/man"/>
        <manpage title="rndc" section="8" manpath="/usr/share/man"/>
        <manpage title="named.conf" section="5" manpath="/usr/share/man"/>
      </documentation>
    </template>
  </service>
</service_bundle>