summaryrefslogtreecommitdiff
path: root/debian/ntp.smf/manifest
diff options
context:
space:
mode:
authorIgor Pashev <pashev.igor@gmail.com>2013-12-01 23:20:26 +0400
committerIgor Pashev <pashev.igor@gmail.com>2013-12-01 23:20:26 +0400
commitba631bf2e72a394404b010e52d05704ecf3b9b22 (patch)
tree896d8b12fc4d70d5daadd97f98c60a270bb9b0a7 /debian/ntp.smf/manifest
parente27645aaddc65bf0dc01cfa85bf5b554abee6a16 (diff)
downloadntp-master.tar.gz
ntp (1:4.2.6.p5+dfsg-3+dyson1) unstable; urgency=lowHEADdyson/4.2.6.p5+dfsg-3+dyson1master
* Package for Dyson (thanks to Gabriele Giacone <1o5g4r8o@gmail.com>) * Added dyson-add-timepps-Solaris.h.patch * Added dyson-no-a.out.h.patch * Added SMF service * Build depends on dh-smf [illumos-any]
Diffstat (limited to 'debian/ntp.smf/manifest')
-rw-r--r--debian/ntp.smf/manifest/network/ntp.xml54
1 files changed, 54 insertions, 0 deletions
diff --git a/debian/ntp.smf/manifest/network/ntp.xml b/debian/ntp.smf/manifest/network/ntp.xml
new file mode 100644
index 0000000..5fed912
--- /dev/null
+++ b/debian/ntp.smf/manifest/network/ntp.xml
@@ -0,0 +1,54 @@
+<?xml version="1.0"?>
+<!DOCTYPE service_bundle SYSTEM "/usr/share/xml/schema/smf/service_bundle.dtd.1">
+<service_bundle type="manifest" name="ntp">
+ <service name="network/ntp" type="service" version="1">
+ <single_instance/>
+ <dependency name="ntp_conf" grouping="require_all" restart_on="restart" type="path">
+ <service_fmri value="file://localhost/etc/ntp.conf"/>
+ </dependency>
+ <dependency name="filesystem" grouping="require_all" restart_on="error" type="service">
+ <service_fmri value="svc:/system/filesystem/local"/>
+ </dependency>
+ <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="routing" grouping="optional_all" restart_on="none" type="service">
+ <service_fmri value="svc:/network/routing-setup"/>
+ </dependency>
+ <exec_method type="method" name="start" exec="/usr/sbin/ntpd %{config/options}" timeout_seconds="60">
+ <method_context>
+ <method_credential user="root" group="root" privileges="basic,!file_link_any,!proc_info,!proc_session,net_privaddr,proc_lock_memory,sys_time"/>
+ </method_context>
+ </exec_method>
+ <exec_method type="method" name="stop" exec=":kill" timeout_seconds="60"/>
+ <property_group name="general" type="framework">
+ <propval name="action_authorization" type="astring" value="solaris.smf.manage.ntp"/>
+ <propval name="value_authorization" type="astring" value="solaris.smf.value.ntp"/>
+ </property_group>
+ <instance name="default" enabled="true">
+ <property_group name="config" type="application">
+ <property name="options" type="astring">
+ <astring_list>
+ <value_node value="-g"/>
+ </astring_list>
+ </property>
+ <propval name="value_authorization" type="astring" value="solaris.smf.value.ntp"/>
+ </property_group>
+ </instance>
+ <stability value="Unstable"/>
+ <template>
+ <common_name>
+ <loctext xml:lang="C">
+ Network Time Protocol daemon
+ </loctext>
+ </common_name>
+ <documentation>
+ <manpage title="ntpd" section="8"/>
+ <manpage title="ntp.conf" section="5"/>
+ </documentation>
+ </template>
+ </service>
+</service_bundle>