rust/cargo-c: update to 0.10.7+cargo-0.84.0
[oi-userland.git] / components / network / udpxy / files / udpxy.xml
blobe299323767b1782d6d54ac385c1930907be84f2f
1 <?xml version="1.0"?>
2 <!DOCTYPE service_bundle SYSTEM "/usr/share/lib/xml/dtd/service_bundle.dtd.1">
3 <!--
5  This file and its contents are supplied under the terms of the
6  Common Development and Distribution License ("CDDL"). You may
7  only use this file in accordance with the terms of the CDDL.
9  A full copy of the text of the CDDL should have accompanied this
10  source. A copy of the CDDL is also available via the Internet at
11  http://www.illumos.org/license/CDDL.
13  Copyright 2016 Adam Stevko 
15 -->
16 <service_bundle type="manifest" name="udpxy">
17   <service name="network/udpxy" type="service" version="1">
18     <create_default_instance enabled="false"/>
19     <single_instance/>
21     <!--
22         Wait for network interfaces to be initialized.
23     -->
24     <dependency name="network" grouping="require_all" restart_on="none" type="service">
25       <service_fmri value="svc:/milestone/network:default"/>
26     </dependency>
27     
28     <!--
29       Wait for all local filesystems to be mounted.
30     -->
31     <dependency name="filesystem-local" grouping="require_all" restart_on="none" type="service">
32       <service_fmri value="svc:/system/filesystem/local:default"/>
33     </dependency>
34     
35     <method_context>
36       <method_environment>
37         <envvar name="PATH" value="/usr/bin:/usr/sbin"/>
38       </method_environment>
39     </method_context>
41     <exec_method 
42       type="method" 
43       name="start" 
44       exec="/usr/bin/udpxy -p %{config/port} -a %{config/listen_address} -m %{config/multicast_source_address} -c %{config/max_clients} %{config/additional_flags}" 
45       timeout_seconds="60">
46       <method_context>
47         <method_credential user='udpxy' group='udpxy' />
48       </method_context>
49     </exec_method>
51     <exec_method type="method" name="stop" exec=":kill" timeout_seconds="60"/>
53     <property_group name="config" type="application">
54       <propval name="port" type="astring" value="4022"/>
55       <propval name="listen_address" type="astring" value="0.0.0.0"/>
56       <propval name="multicast_source_address" type="astring" value="0.0.0.0"/>
57       <propval name="max_clients" type="astring" value="3"/>
58       <propval name="additional_flags" type="astring" value=""/>
59       <propval name="value_authorization" type="astring" value="solaris.smf.value.udpxy"/>
60     </property_group>
62     <property_group name="general" type="framework">
63       <propval name="action_authorization" type="astring" value="solaris.smf.manage.udpxy"/>
64       <propval name="value_authorization" type="astring" value="solaris.smf.manage.udpxy"/>
65     </property_group>
66       
67     <property_group name="startd" type="framework">
68       <propval name="duration" type="astring" value="child"/>
69       <propval name="ignore_error" type="astring" value="core,signal"/>
70     </property_group>
71   
72     <stability value="Unstable"/>
73     
74     <template>
75       <common_name>
76         <loctext xml:lang="C">udpxy multicast-to-HTTP relay daemon</loctext>
77       </common_name>
78       <documentation>
79         <manpage title="udpxy" section="1"/>
80       </documentation>
81     </template>
83   </service>
84 </service_bundle>