xref: /titanic_52/usr/src/cmd/fs.d/nfs/svc/client.xml (revision 4656d4747c8743290bfbe910c64cd75eb4e4af8d)
1<?xml version="1.0"?>
2<!DOCTYPE service_bundle SYSTEM "/usr/share/lib/xml/dtd/service_bundle.dtd.1">
3<!--
4    CDDL HEADER START
5
6    The contents of this file are subject to the terms of the
7    Common Development and Distribution License (the "License").
8    You may not use this file except in compliance with the License.
9
10    You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
11    or http://www.opensolaris.org/os/licensing.
12    See the License for the specific language governing permissions
13    and limitations under the License.
14
15    When distributing Covered Code, include this CDDL HEADER in each
16    file and include the License file at usr/src/OPENSOLARIS.LICENSE.
17    If applicable, add the following below this CDDL HEADER, with the
18    fields enclosed by brackets "[]" replaced with your own identifying
19    information: Portions Copyright [yyyy] [name of copyright owner]
20
21    CDDL HEADER END
22
23    Copyright (c) 2004, 2010, Oracle and/or its affiliates. All rights reserved.
24
25    NOTE:  This service manifest is not editable; its contents will
26    be overwritten by package or patch operations, including
27    operating system upgrade.  Make customizations in a different
28    file.
29-->
30
31<service_bundle type='manifest' name='SUNWnfscr:nfs-client'>
32
33<service
34	name='network/nfs/client'
35	type='service'
36	version='1'>
37
38	<dependency name='network'
39	    grouping='require_any'
40	    restart_on='error'
41	    type='service'>
42		<service_fmri value='svc:/milestone/network' />
43	</dependency>
44
45	<dependency name='nlockmgr'
46	    grouping='require_all'
47	    restart_on='error'
48	    type='service'>
49		<service_fmri value='svc:/network/nfs/nlockmgr' />
50	</dependency>
51
52	<dependency name='cbd'
53	    grouping='optional_all'
54	    restart_on='error'
55	    type='service'>
56		<service_fmri value='svc:/network/nfs/cbd' />
57	</dependency>
58
59	<dependency name='mapid'
60	    grouping='optional_all'
61	    restart_on='error'
62	    type='service'>
63		<service_fmri value='svc:/network/nfs/mapid' />
64	</dependency>
65
66	<dependency name='rpcbind'
67	    grouping='require_all'
68	    restart_on='restart'
69	    type='service'>
70		<service_fmri value='svc:/network/rpc/bind' />
71	</dependency>
72
73	<dependency name='keyserv'
74	    grouping='optional_all'
75	    restart_on='none'
76	    type='service'>
77		<service_fmri value='svc:/network/rpc/keyserv' />
78	</dependency>
79
80	<dependency name='gss'
81	    grouping='optional_all'
82	    restart_on='none'
83	    type='service'>
84		<service_fmri value='svc:/network/rpc/gss' />
85	</dependency>
86
87	<dependency name='name-services'
88	    grouping='require_all'
89	    restart_on='refresh'
90	    type='service'>
91		<service_fmri value='svc:/milestone/name-services' />
92	</dependency>
93
94	<dependent
95		name='nfs-client_multi-user'
96		grouping='optional_all'
97		restart_on='none'>
98		<service_fmri value='svc:/milestone/multi-user' />
99	</dependent>
100
101	<!--
102	  Err on the side of caution for the mountalls in the nfs-client
103	  startup script.  Don't timeout just because remote servers are
104	  being sluggish.
105	-->
106	<exec_method
107	    type='method'
108	    name='start'
109	    exec='/lib/svc/method/nfs-client %m'
110	    timeout_seconds='3600' />
111
112	<exec_method
113	    type='method'
114	    name='stop'
115	    exec='/lib/svc/method/nfs-client %m'
116	    timeout_seconds='60' />
117
118	<property_group
119	    name='startd'
120	    type='framework'>
121		<propval name='duration' type='astring' value='transient' />
122	</property_group>
123
124	<instance name='default' enabled='false'>
125	  <property_group name='nfs-props' type='com.oracle.nfs,props'>
126	    <propval name='client_versmax' type='integer' value='4'/>
127	    <propval name='client_versmin' type='integer' value='2'/>
128	  </property_group>
129	</instance>
130	<stability value='Unstable' />
131
132	<template>
133		<common_name>
134			<loctext xml:lang='C'>
135			NFS client
136			</loctext>
137		</common_name>
138		<documentation>
139			<manpage title='mount_nfs' section='1M'
140				manpath='/usr/share/man' />
141		</documentation>
142	</template>
143</service>
144
145</service_bundle>
146