diff options
author | jperkin <jperkin@pkgsrc.org> | 2016-06-02 08:36:23 +0000 |
---|---|---|
committer | jperkin <jperkin@pkgsrc.org> | 2016-06-02 08:36:23 +0000 |
commit | 4b6d4cbc177a2124bca13863ac31149adc227ec0 (patch) | |
tree | dd451ab4c8960924941149a29b6a495783c286d0 /net | |
parent | fad2160591f3f46ba3da7668b2de85a4bbcfb39c (diff) | |
download | pkgsrc-4b6d4cbc177a2124bca13863ac31149adc227ec0.tar.gz |
Add SMF manifest. Contributed by Jorge Schrauwen in joyent/pkgsrc#359 with
some changes by myself.
Diffstat (limited to 'net')
-rw-r--r-- | net/avahi/files/smf/manifest.xml | 34 |
1 files changed, 34 insertions, 0 deletions
diff --git a/net/avahi/files/smf/manifest.xml b/net/avahi/files/smf/manifest.xml new file mode 100644 index 00000000000..a6efbff454b --- /dev/null +++ b/net/avahi/files/smf/manifest.xml @@ -0,0 +1,34 @@ +<?xml version='1.0'?> +<!DOCTYPE service_bundle SYSTEM '/usr/share/lib/xml/dtd/service_bundle.dtd.1'> +<service_bundle type='manifest' name='export'> + <service name='@SMF_PREFIX@/@SMF_NAME@' type='service' version='0'> + <create_default_instance enabled='false'/> + <single_instance/> + <dependency name='network' grouping='require_all' restart_on='error' type='service'> + <service_fmri value='svc:/milestone/network:default'/> + </dependency> + <dependency name='filesystem' grouping='require_all' restart_on='none' type='service'> + <service_fmri value='svc:/system/filesystem/local:default'/> + </dependency> + <dependency name='dbus' grouping='require_all' restart_on='none' type='service'> + <service_fmri value='svc:/@SMF_PREFIX@/dbus:default'/> + </dependency> + <method_context> + <method_environment> + <envvar name='PATH' value='@PREFIX@/sbin:@PREFIX@/bin:/sbin:/usr/sbin:/usr/bin'/> + </method_environment> + </method_context> + <exec_method name='start' type='method' exec='@PREFIX@/sbin/avahi-daemon -D' timeout_seconds='60'/> + <exec_method name='stop' type='method' exec='@PREFIX@/sbin/avahi-daemon -k' timeout_seconds='60'/> + <exec_method name='refresh' type='method' exec='@PREFIX@/sbin/avahi-daemon -r' timeout_seconds='60'/> + <stability value='Evolving'/> + <template> + <common_name> + <loctext xml:lang='C'>Avahi mDNS Daemon</loctext> + </common_name> + <documentation> + <manpage title='avahi-daemon' section='8' manpath='@PREFIX@/@PKGMANDIR@'/> + </documentation> + </template> + </service> +</service_bundle> |