|
1 <?xml version="1.0"?> |
|
2 <!DOCTYPE service_bundle SYSTEM "/usr/share/lib/xml/dtd/service_bundle.dtd.1"> |
|
3 <!-- |
|
4 |
|
5 CDDL HEADER START |
|
6 |
|
7 The contents of this file are subject to the terms of the |
|
8 Common Development and Distribution License (the "License"). |
|
9 You may not use this file except in compliance with the License. |
|
10 |
|
11 You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE |
|
12 or http://www.opensolaris.org/os/licensing. |
|
13 See the License for the specific language governing permissions |
|
14 and limitations under the License. |
|
15 |
|
16 When distributing Covered Code, include this CDDL HEADER in each |
|
17 file and include the License file at usr/src/OPENSOLARIS.LICENSE. |
|
18 If applicable, add the following below this CDDL HEADER, with the |
|
19 fields enclosed by brackets "[]" replaced with your own identifying |
|
20 information: Portions Copyright [yyyy] [name of copyright owner] |
|
21 |
|
22 CDDL HEADER END |
|
23 |
|
24 Copyright 2009 Sun Microsystems, Inc. All rights reserved. |
|
25 Use is subject to license terms. |
|
26 |
|
27 #ident "@(#)tor.xml 1.1 09/05/14 SMI" |
|
28 |
|
29 NOTE: This service manifest is not editable; its contents will |
|
30 be overwritten by package or patch operations, including |
|
31 operating system upgrade. Make customizations in a different |
|
32 file. |
|
33 --> |
|
34 |
|
35 <service_bundle type='manifest' name='tor'> |
|
36 |
|
37 <service |
|
38 name='network/tor' |
|
39 type='service' |
|
40 version='1'> |
|
41 |
|
42 <create_default_instance enabled='false' /> |
|
43 <single_instance/> |
|
44 <!-- |
|
45 Wait for network interfaces to be initialized. |
|
46 --> |
|
47 <dependency |
|
48 name='network' |
|
49 grouping='require_all' |
|
50 restart_on='none' |
|
51 type='service'> |
|
52 <service_fmri value='svc:/milestone/network:default' /> |
|
53 </dependency> |
|
54 |
|
55 <!-- |
|
56 Wait for all local filesystems to be mounted. |
|
57 --> |
|
58 <dependency |
|
59 name='filesystem-local' |
|
60 grouping='require_all' |
|
61 restart_on='none' |
|
62 type='service'> |
|
63 <service_fmri value='svc:/system/filesystem/local:default' /> |
|
64 </dependency> |
|
65 |
|
66 <exec_method |
|
67 type='method' |
|
68 name='stop' |
|
69 exec='/lib/svc/method/tor.sh stop' |
|
70 timeout_seconds='60'> |
|
71 <method_context> |
|
72 <method_credential user='daemon' group='daemon' /> |
|
73 </method_context> |
|
74 </exec_method> |
|
75 |
|
76 <exec_method |
|
77 type='method' |
|
78 name='start' |
|
79 exec='/lib/svc/method/tor.sh start' |
|
80 timeout_seconds='60'> |
|
81 <method_context> |
|
82 <method_credential user='daemon' group='daemon' |
|
83 privileges='basic,net_privaddr' |
|
84 /> |
|
85 </method_context> |
|
86 </exec_method> |
|
87 |
|
88 <property_group name='general' type='framework'> |
|
89 <propval name='action_authorization' type='astring' |
|
90 value='solaris.smf.manage.tor' /> |
|
91 <propval name='value_authorization' type='astring' |
|
92 value='solaris.smf.manage.tor' /> |
|
93 </property_group> |
|
94 |
|
95 |
|
96 <property_group name='config' type='application'> |
|
97 <propval |
|
98 name='local_only' |
|
99 type='boolean' |
|
100 value='true' /> |
|
101 <propval |
|
102 name='value_authorization' |
|
103 type='astring' |
|
104 value='solaris.smf.value.tor' /> |
|
105 </property_group> |
|
106 |
|
107 <property_group name='firewall_context' type='com.sun,fw_definition'> |
|
108 <propval name='name' type='astring' value='tor' /> |
|
109 <propval name='ipf_method' type='astring' |
|
110 value='/lib/svc/method/tor ipfilter' /> |
|
111 </property_group> |
|
112 |
|
113 <property_group name='firewall_config' type='com.sun,fw_configuration'> |
|
114 <propval name='policy' type='astring' value='use_global' /> |
|
115 <propval name='apply_to' type='astring' value='' /> |
|
116 <propval name='exceptions' type='astring' value='' /> |
|
117 <propval name='value_authorization' type='astring' |
|
118 value='solaris.smf.value.firewall.config' /> |
|
119 </property_group> |
|
120 |
|
121 <stability value='Unstable' /> |
|
122 |
|
123 <template> |
|
124 <common_name> |
|
125 <loctext xml:lang='C'> |
|
126 Tor Relay Daemon |
|
127 </loctext> |
|
128 </common_name> |
|
129 <documentation> |
|
130 <manpage title='tor' section='1M' /> |
|
131 </documentation> |
|
132 </template> |
|
133 </service> |
|
134 </service_bundle> |