diff options
Diffstat (limited to 'debian/ntp.smf/manifest/network/ntp.xml')
-rw-r--r-- | debian/ntp.smf/manifest/network/ntp.xml | 54 |
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> |