Print this page
7569 statd 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/status.xml
+++ new/usr/src/cmd/fs.d/nfs/svc/status.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 Copyright 2009 Sun Microsystems, Inc. All rights reserved.
5 5 Use is subject to license terms.
6 6
7 7 CDDL HEADER START
8 8
9 9 The contents of this file are subject to the terms of the
10 10 Common Development and Distribution License (the "License").
11 11 You may not use this file except in compliance with the License.
12 12
13 13 You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
14 14 or http://www.opensolaris.org/os/licensing.
15 15 See the License for the specific language governing permissions
16 16 and limitations under the License.
17 17
18 18 When distributing Covered Code, include this CDDL HEADER in each
19 19 file and include the License file at usr/src/OPENSOLARIS.LICENSE.
20 20 If applicable, add the following below this CDDL HEADER, with the
21 21 fields enclosed by brackets "[]" replaced with your own identifying
22 22 information: Portions Copyright [yyyy] [name of copyright owner]
23 23
24 24 CDDL HEADER END
25 25
↓ open down ↓ |
25 lines elided |
↑ open up ↑ |
26 26 NOTE: This service manifest is not editable; its contents will
27 27 be overwritten by package or patch operations, including
28 28 operating system upgrade. Make customizations in a different
29 29 file.
30 30
31 31 Note: if this service is modified to consist of anything other
32 32 than a single instance named 'default', you must make changes to
33 33 $SRC/head/rpcsvc/daemon_utils.h and libnsl:open_daemon_lock().
34 34 -->
35 35
36 +<!-- Copyright (c) 2016 by Delphix. All rights reserved. -->
37 +
36 38 <service_bundle type='manifest' name='SUNWnfscr:nfs-status'>
37 39
38 40 <service
39 41 name='network/nfs/status'
40 42 type='service'
41 43 version='1'>
42 44
43 - <create_default_instance enabled='false' />
44 -
45 - <single_instance />
46 -
47 45 <dependency name='network'
48 46 grouping='require_any'
49 47 restart_on='error'
50 48 type='service'>
51 49 <service_fmri value='svc:/milestone/network' />
52 50 </dependency>
53 51
54 52 <dependency name='rpcbind'
55 53 grouping='require_all'
56 54 restart_on='restart'
57 55 type='service'>
58 56 <service_fmri value='svc:/network/rpc/bind' />
59 57 </dependency>
60 58
61 59 <dependency name='filesystem-local'
62 60 grouping='require_all'
63 61 restart_on='error'
64 62 type='service'>
65 63 <service_fmri value='svc:/system/filesystem/local' />
66 64 </dependency>
67 65
68 66 <exec_method
69 67 type='method'
70 68 name='start'
71 69 exec='/usr/lib/nfs/statd'
72 70 timeout_seconds='60' />
73 71
74 72 <exec_method
75 73 type='method'
76 74 name='stop'
77 75 exec=':kill'
78 76 timeout_seconds='60' />
79 77
80 78 <property_group name='firewall_context' type='com.sun,fw_definition'>
81 79 <propval name='isrpc' type='boolean' value='true' />
↓ open down ↓ |
25 lines elided |
↑ open up ↑ |
82 80 <propval name='name' type='astring' value='status' />
83 81 <propval name='ipf_method' type='astring'
84 82 value='/lib/svc/method/nfs-server ipfilter' />
85 83 </property_group>
86 84
87 85 <property_group name='application' type='framework'>
88 86 <stability value='Evolving' />
89 87 <propval name='auto_enable' type='boolean' value='true' />
90 88 </property_group>
91 89
90 + <instance name='default' enabled='false'>
91 + <property_group name='nfs-props' type='com.oracle.nfs,props'>
92 + <propval name='statd_port' type='integer' value='0'/>
93 + </property_group>
94 + </instance>
95 +
92 96 <stability value='Stable' />
93 97
94 98 <template>
95 99 <common_name>
96 100 <loctext xml:lang='C'>
97 101 NFS status monitor
98 102 </loctext>
99 103 </common_name>
100 104 <documentation>
101 105 <manpage title='statd' section='1M'
102 106 manpath='/usr/share/man' />
103 107 </documentation>
104 108 </template>
105 109 </service>
106 110
107 111 </service_bundle>
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX