diff options
author | Igor Pashev <pashev.igor@gmail.com> | 2015-01-04 17:56:24 +0300 |
---|---|---|
committer | Igor Pashev <pashev.igor@gmail.com> | 2015-01-04 17:56:24 +0300 |
commit | 6debcfa06e1f94be14f16c4eb786a48d53d7af6f (patch) | |
tree | fe6d8fbcd6c94f0d7e6136178f869fa3f3db33a3 | |
parent | a9e4dccdf65617e7173bc3521ee058a41bba5279 (diff) | |
download | bind9-6debcfa06e1f94be14f16c4eb786a48d53d7af6f.tar.gz |
Added SMF service for bind9
-rw-r--r-- | debian/bind9.smf/manifest/network/dns/bind9.xml | 39 |
1 files changed, 39 insertions, 0 deletions
diff --git a/debian/bind9.smf/manifest/network/dns/bind9.xml b/debian/bind9.smf/manifest/network/dns/bind9.xml new file mode 100644 index 00000000..174a0037 --- /dev/null +++ b/debian/bind9.smf/manifest/network/dns/bind9.xml @@ -0,0 +1,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> |