Print this page
7577 mountd support to run on a fixed port
Portions contributed by: Paul Dagnelie <pcd@delphix.com>
Reviewed by: Evan Layton <evan.layton@nexenta.com>
Reviewed by: Sebastien Roy <sebastien.roy@delphix.com>
Split |
Close |
Expand all |
Collapse all |
--- old/usr/src/cmd/fs.d/nfs/svc/server.xml
+++ new/usr/src/cmd/fs.d/nfs/svc/server.xml
1 1 <?xml version="1.0"?>
2 2 <!DOCTYPE service_bundle SYSTEM "/usr/share/lib/xml/dtd/service_bundle.dtd.1">
3 3 <!--
4 4
5 5 CDDL HEADER START
6 6
7 7 The contents of this file are subject to the terms of the
8 8 Common Development and Distribution License (the "License").
9 9 You may not use this file except in compliance with the License.
10 10
11 11 You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
12 12 or http://www.opensolaris.org/os/licensing.
13 13 See the License for the specific language governing permissions
14 14 and limitations under the License.
15 15
16 16 When distributing Covered Code, include this CDDL HEADER in each
17 17 file and include the License file at usr/src/OPENSOLARIS.LICENSE.
↓ open down ↓ |
17 lines elided |
↑ open up ↑ |
18 18 If applicable, add the following below this CDDL HEADER, with the
19 19 fields enclosed by brackets "[]" replaced with your own identifying
20 20 information: Portions Copyright [yyyy] [name of copyright owner]
21 21
22 22 CDDL HEADER END
23 23
24 24 Copyright (c) 2004, 2010, Oracle and/or its affiliates. All rights reserved.
25 25 Copyright (c) 2012 by Delphix. All rights reserved.
26 26 Copyright 2014 Nexenta Systems, Inc. All rights reserved
27 27 Copyright 2016 Hans Rosenfeld <rosenfeld@grumpf.hope-2000.org>
28 + Copyright (c) 2012, 2014 by Delphix. All rights reserved.
28 29
29 30 NOTE: This service manifest is not editable; its contents will
30 31 be overwritten by package or patch operations, including
31 32 operating system upgrade. Make customizations in a different
32 33 file.
33 34
34 35 Note: if this service is modified to consist of anything other
35 36 than a single instance named 'default', you must make changes to
36 37 $SRC/head/rpcsvc/daemon_utils.h and libnsl:open_daemon_lock().
37 38 -->
38 39
39 40 <service_bundle type='manifest' name='SUNWnfssr:nfs-server'>
40 41
41 42 <service
42 43 name='network/nfs/server'
43 44 type='service'
44 45 version='2'>
45 46
46 47 <dependency name='network'
47 48 grouping='require_any'
48 49 restart_on='error'
49 50 type='service'>
50 51 <service_fmri value='svc:/milestone/network' />
51 52 </dependency>
52 53
53 54 <dependency name='nlockmgr'
54 55 grouping='require_all'
55 56 restart_on='error'
56 57 type='service'>
57 58 <service_fmri value='svc:/network/nfs/nlockmgr' />
58 59 </dependency>
59 60
60 61 <dependency name='mapid'
61 62 grouping='optional_all'
62 63 restart_on='error'
63 64 type='service'>
64 65 <service_fmri value='svc:/network/nfs/mapid' />
65 66 </dependency>
66 67
67 68 <dependency name='rpcbind'
68 69 grouping='require_all'
69 70 restart_on='restart'
70 71 type='service'>
71 72 <service_fmri value='svc:/network/rpc/bind' />
72 73 </dependency>
73 74
74 75 <dependency name='keyserv'
75 76 grouping='optional_all'
76 77 restart_on='none'
77 78 type='service'>
78 79 <service_fmri value='svc:/network/rpc/keyserv' />
79 80 </dependency>
80 81
81 82 <dependency name='gss'
82 83 grouping='optional_all'
83 84 restart_on='none'
84 85 type='service'>
85 86 <service_fmri value='svc:/network/rpc/gss' />
86 87 </dependency>
87 88
88 89 <dependency name='share-group'
89 90 grouping='optional_all'
90 91 restart_on='none'
91 92 type='service'>
92 93 <service_fmri value='svc:/network/shares/group' />
93 94 </dependency>
94 95
95 96 <dependency name='reparse'
96 97 grouping='optional_all'
97 98 restart_on='none'
98 99 type='service'>
99 100 <service_fmri value='svc:/system/filesystem/reparse' />
100 101 </dependency>
101 102
102 103 <!-- Must have all local filesystems mounted before we share them -->
103 104 <dependency name='filesystem-local'
104 105 grouping='require_all'
105 106 restart_on='error'
106 107 type='service'>
107 108 <service_fmri value='svc:/system/filesystem/local' />
108 109 </dependency>
109 110
110 111 <dependent
111 112 name='nfs-server_multi-user-server'
112 113 grouping='optional_all'
113 114 restart_on='none'>
114 115 <service_fmri value='svc:/milestone/multi-user-server' />
115 116 </dependent>
116 117
117 118 <!--
118 119 The shareall done as part of the nfs-server method may take a
119 120 long time, as the contents of dfstab can be arbitrarily large.
120 121 Set the timeout appropriately for both 'start' and 'refresh'.
121 122 -->
122 123 <exec_method
123 124 type='method'
124 125 name='start'
125 126 exec='/lib/svc/method/nfs-server %m'
126 127 timeout_seconds='3600' />
127 128
128 129 <exec_method
129 130 type='method'
130 131 name='refresh'
131 132 exec='/lib/svc/method/nfs-server %m'
132 133 timeout_seconds='3600' />
133 134
134 135 <!--
135 136 The stop method runs unshareall as well as up to a 10 second
136 137 sleep to do graceful versus forceful shutdown of daemons. Set
137 138 the timeout appropriately.
138 139 -->
139 140 <exec_method
140 141 type='method'
141 142 name='stop'
142 143 exec='/lib/svc/method/nfs-server %m %{restarter/contract}'
143 144 timeout_seconds='3600' />
144 145
↓ open down ↓ |
107 lines elided |
↑ open up ↑ |
145 146 <property_group name='application' type='framework'>
146 147 <stability value='Evolving' />
147 148 <propval name='auto_enable' type='boolean' value='true' />
148 149 </property_group>
149 150
150 151 <property_group name='firewall_context' type='com.sun,fw_definition'>
151 152 <propval name='name' type='astring' value='nfsd' />
152 153 <propval name='ipf_method' type='astring'
153 154 value='/lib/svc/method/nfs-server ipfilter' />
154 155 </property_group>
155 -
156 +
156 157 <property_group name='firewall_config' type='com.sun,fw_configuration'>
157 158 <propval name='policy' type='astring' value='use_global' />
158 159 <propval name='block_policy' type='astring'
159 160 value='use_global' />
160 161 <propval name='apply_to' type='astring' value='' />
161 162 <propval name='apply_to_6' type='astring' value='' />
162 163 <propval name='exceptions' type='astring' value='' />
163 164 <propval name='exceptions_6' type='astring' value='' />
164 165 <propval name='target' type='astring' value='' />
165 166 <propval name='target_6' type='astring' value='' />
166 167 <propval name='value_authorization' type='astring'
167 168 value='solaris.smf.value.firewall.config' />
168 169 </property_group>
169 170 <instance name='default' enabled='false'>
170 171 <property_group name='nfs-props' type='com.oracle.nfs,props'>
↓ open down ↓ |
5 lines elided |
↑ open up ↑ |
171 172 <propval name='device' type='astring' value=''/>
172 173 <propval name='listen_backlog' type='integer' value='32'/>
173 174 <propval name='max_connections' type='integer' value='-1'/>
174 175 <propval name='protocol' type='astring' value='ALL'/>
175 176 <propval name='server_delegation' type='astring' value='on'/>
176 177 <propval name='server_versmax' type='integer' value='4'/>
177 178 <propval name='server_versmin' type='integer' value='2'/>
178 179 <propval name='servers' type='integer' value='1024'/>
179 180 <propval name='mountd_listen_backlog' type='integer' value='64'/>
180 181 <propval name='mountd_max_threads' type='integer' value='16'/>
182 + <propval name='mountd_port' type='integer' value='0'/>
181 183 </property_group>
182 184 </instance>
183 185
184 186 <stability value='Stable' />
185 187
186 188 <template>
187 189 <common_name>
188 190 <loctext xml:lang='C'>
189 191 NFS server
190 192 </loctext>
191 193 </common_name>
192 194 <documentation>
193 195 <manpage title='nfsd' section='1M'
194 196 manpath='/usr/share/man' />
195 197 </documentation>
196 198 </template>
197 199 </service>
198 200
199 201 </service_bundle>
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX