xref: /illumos-gate/usr/src/cmd/fs.d/nfs/svc/client.xml (revision dd51520e)
17c478bd9Sstevel@tonic-gate<?xml version="1.0"?>
27c478bd9Sstevel@tonic-gate<!DOCTYPE service_bundle SYSTEM "/usr/share/lib/xml/dtd/service_bundle.dtd.1">
37c478bd9Sstevel@tonic-gate<!--
4*dd51520eSPavan Mettu - Oracle Corporation - Menlo Park United States    CDDL HEADER START
57c478bd9Sstevel@tonic-gate
6*dd51520eSPavan Mettu - Oracle Corporation - Menlo Park United States    The contents of this file are subject to the terms of the
7*dd51520eSPavan Mettu - Oracle Corporation - Menlo Park United States    Common Development and Distribution License (the "License").
8*dd51520eSPavan Mettu - Oracle Corporation - Menlo Park United States    You may not use this file except in compliance with the License.
97c478bd9Sstevel@tonic-gate
10*dd51520eSPavan Mettu - Oracle Corporation - Menlo Park United States    You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
11*dd51520eSPavan Mettu - Oracle Corporation - Menlo Park United States    or http://www.opensolaris.org/os/licensing.
12*dd51520eSPavan Mettu - Oracle Corporation - Menlo Park United States    See the License for the specific language governing permissions
13*dd51520eSPavan Mettu - Oracle Corporation - Menlo Park United States    and limitations under the License.
147c478bd9Sstevel@tonic-gate
15*dd51520eSPavan Mettu - Oracle Corporation - Menlo Park United States    When distributing Covered Code, include this CDDL HEADER in each
16*dd51520eSPavan Mettu - Oracle Corporation - Menlo Park United States    file and include the License file at usr/src/OPENSOLARIS.LICENSE.
17*dd51520eSPavan Mettu - Oracle Corporation - Menlo Park United States    If applicable, add the following below this CDDL HEADER, with the
18*dd51520eSPavan Mettu - Oracle Corporation - Menlo Park United States    fields enclosed by brackets "[]" replaced with your own identifying
19*dd51520eSPavan Mettu - Oracle Corporation - Menlo Park United States    information: Portions Copyright [yyyy] [name of copyright owner]
207c478bd9Sstevel@tonic-gate
21*dd51520eSPavan Mettu - Oracle Corporation - Menlo Park United States    CDDL HEADER END
227c478bd9Sstevel@tonic-gate
23*dd51520eSPavan Mettu - Oracle Corporation - Menlo Park United States    Copyright (c) 2004, 2010, Oracle and/or its affiliates. All rights reserved.
247c478bd9Sstevel@tonic-gate
25*dd51520eSPavan Mettu - Oracle Corporation - Menlo Park United States    NOTE:  This service manifest is not editable; its contents will
26*dd51520eSPavan Mettu - Oracle Corporation - Menlo Park United States    be overwritten by package or patch operations, including
27*dd51520eSPavan Mettu - Oracle Corporation - Menlo Park United States    operating system upgrade.  Make customizations in a different
28*dd51520eSPavan Mettu - Oracle Corporation - Menlo Park United States    file.
297c478bd9Sstevel@tonic-gate-->
307c478bd9Sstevel@tonic-gate
317c478bd9Sstevel@tonic-gate<service_bundle type='manifest' name='SUNWnfscr:nfs-client'>
327c478bd9Sstevel@tonic-gate
337c478bd9Sstevel@tonic-gate<service
347c478bd9Sstevel@tonic-gate	name='network/nfs/client'
357c478bd9Sstevel@tonic-gate	type='service'
367c478bd9Sstevel@tonic-gate	version='1'>
377c478bd9Sstevel@tonic-gate
387c478bd9Sstevel@tonic-gate	<dependency name='network'
397c478bd9Sstevel@tonic-gate	    grouping='require_any'
407c478bd9Sstevel@tonic-gate	    restart_on='error'
417c478bd9Sstevel@tonic-gate	    type='service'>
427c478bd9Sstevel@tonic-gate		<service_fmri value='svc:/milestone/network' />
437c478bd9Sstevel@tonic-gate	</dependency>
447c478bd9Sstevel@tonic-gate
457c478bd9Sstevel@tonic-gate	<dependency name='nlockmgr'
467c478bd9Sstevel@tonic-gate	    grouping='require_all'
477c478bd9Sstevel@tonic-gate	    restart_on='error'
487c478bd9Sstevel@tonic-gate	    type='service'>
497c478bd9Sstevel@tonic-gate		<service_fmri value='svc:/network/nfs/nlockmgr' />
507c478bd9Sstevel@tonic-gate	</dependency>
517c478bd9Sstevel@tonic-gate
527c478bd9Sstevel@tonic-gate	<dependency name='cbd'
537c478bd9Sstevel@tonic-gate	    grouping='optional_all'
547c478bd9Sstevel@tonic-gate	    restart_on='error'
557c478bd9Sstevel@tonic-gate	    type='service'>
567c478bd9Sstevel@tonic-gate		<service_fmri value='svc:/network/nfs/cbd' />
577c478bd9Sstevel@tonic-gate	</dependency>
587c478bd9Sstevel@tonic-gate
597c478bd9Sstevel@tonic-gate	<dependency name='mapid'
607c478bd9Sstevel@tonic-gate	    grouping='optional_all'
617c478bd9Sstevel@tonic-gate	    restart_on='error'
627c478bd9Sstevel@tonic-gate	    type='service'>
637c478bd9Sstevel@tonic-gate		<service_fmri value='svc:/network/nfs/mapid' />
647c478bd9Sstevel@tonic-gate	</dependency>
657c478bd9Sstevel@tonic-gate
667c478bd9Sstevel@tonic-gate	<dependency name='rpcbind'
677c478bd9Sstevel@tonic-gate	    grouping='require_all'
687c478bd9Sstevel@tonic-gate	    restart_on='restart'
697c478bd9Sstevel@tonic-gate	    type='service'>
707c478bd9Sstevel@tonic-gate		<service_fmri value='svc:/network/rpc/bind' />
717c478bd9Sstevel@tonic-gate	</dependency>
727c478bd9Sstevel@tonic-gate
737c478bd9Sstevel@tonic-gate	<dependency name='keyserv'
747c478bd9Sstevel@tonic-gate	    grouping='optional_all'
757c478bd9Sstevel@tonic-gate	    restart_on='none'
767c478bd9Sstevel@tonic-gate	    type='service'>
777c478bd9Sstevel@tonic-gate		<service_fmri value='svc:/network/rpc/keyserv' />
787c478bd9Sstevel@tonic-gate	</dependency>
797c478bd9Sstevel@tonic-gate
807c478bd9Sstevel@tonic-gate	<dependency name='gss'
817c478bd9Sstevel@tonic-gate	    grouping='optional_all'
827c478bd9Sstevel@tonic-gate	    restart_on='none'
837c478bd9Sstevel@tonic-gate	    type='service'>
847c478bd9Sstevel@tonic-gate		<service_fmri value='svc:/network/rpc/gss' />
857c478bd9Sstevel@tonic-gate	</dependency>
867c478bd9Sstevel@tonic-gate
877c478bd9Sstevel@tonic-gate	<dependency name='name-services'
887c478bd9Sstevel@tonic-gate	    grouping='require_all'
897c478bd9Sstevel@tonic-gate	    restart_on='refresh'
907c478bd9Sstevel@tonic-gate	    type='service'>
917c478bd9Sstevel@tonic-gate		<service_fmri value='svc:/milestone/name-services' />
927c478bd9Sstevel@tonic-gate	</dependency>
937c478bd9Sstevel@tonic-gate
947c478bd9Sstevel@tonic-gate	<dependent
957c478bd9Sstevel@tonic-gate		name='nfs-client_multi-user'
967c478bd9Sstevel@tonic-gate		grouping='optional_all'
977c478bd9Sstevel@tonic-gate		restart_on='none'>
987c478bd9Sstevel@tonic-gate		<service_fmri value='svc:/milestone/multi-user' />
997c478bd9Sstevel@tonic-gate	</dependent>
1007c478bd9Sstevel@tonic-gate
1017c478bd9Sstevel@tonic-gate	<!--
1027c478bd9Sstevel@tonic-gate	  Err on the side of caution for the mountalls in the nfs-client
1037c478bd9Sstevel@tonic-gate	  startup script.  Don't timeout just because remote servers are
1047c478bd9Sstevel@tonic-gate	  being sluggish.
1057c478bd9Sstevel@tonic-gate	-->
1067c478bd9Sstevel@tonic-gate	<exec_method
1077c478bd9Sstevel@tonic-gate	    type='method'
1087c478bd9Sstevel@tonic-gate	    name='start'
1097c478bd9Sstevel@tonic-gate	    exec='/lib/svc/method/nfs-client %m'
1107c478bd9Sstevel@tonic-gate	    timeout_seconds='3600' />
1117c478bd9Sstevel@tonic-gate
1127c478bd9Sstevel@tonic-gate	<exec_method
1137c478bd9Sstevel@tonic-gate	    type='method'
1147c478bd9Sstevel@tonic-gate	    name='stop'
1157c478bd9Sstevel@tonic-gate	    exec='/lib/svc/method/nfs-client %m'
1167c478bd9Sstevel@tonic-gate	    timeout_seconds='60' />
1177c478bd9Sstevel@tonic-gate
1187c478bd9Sstevel@tonic-gate	<property_group
1197c478bd9Sstevel@tonic-gate	    name='startd'
1207c478bd9Sstevel@tonic-gate	    type='framework'>
1217c478bd9Sstevel@tonic-gate		<propval name='duration' type='astring' value='transient' />
1227c478bd9Sstevel@tonic-gate	</property_group>
1237c478bd9Sstevel@tonic-gate
124*dd51520eSPavan Mettu - Oracle Corporation - Menlo Park United States	<instance name='default' enabled='false'>
125*dd51520eSPavan Mettu - Oracle Corporation - Menlo Park United States	  <property_group name='nfs-props' type='com.oracle.nfs,props'>
126*dd51520eSPavan Mettu - Oracle Corporation - Menlo Park United States	    <propval name='client_versmax' type='integer' value='4'/>
127*dd51520eSPavan Mettu - Oracle Corporation - Menlo Park United States	    <propval name='client_versmin' type='integer' value='2'/>
128*dd51520eSPavan Mettu - Oracle Corporation - Menlo Park United States	  </property_group>
129*dd51520eSPavan Mettu - Oracle Corporation - Menlo Park United States	</instance>
1307c478bd9Sstevel@tonic-gate	<stability value='Unstable' />
1317c478bd9Sstevel@tonic-gate
1327c478bd9Sstevel@tonic-gate	<template>
1337c478bd9Sstevel@tonic-gate		<common_name>
1347c478bd9Sstevel@tonic-gate			<loctext xml:lang='C'>
1357c478bd9Sstevel@tonic-gate			NFS client
1367c478bd9Sstevel@tonic-gate			</loctext>
1377c478bd9Sstevel@tonic-gate		</common_name>
1387c478bd9Sstevel@tonic-gate		<documentation>
1397c478bd9Sstevel@tonic-gate			<manpage title='mount_nfs' section='1M'
1407c478bd9Sstevel@tonic-gate				manpath='/usr/share/man' />
1417c478bd9Sstevel@tonic-gate		</documentation>
1427c478bd9Sstevel@tonic-gate	</template>
1437c478bd9Sstevel@tonic-gate</service>
1447c478bd9Sstevel@tonic-gate
1457c478bd9Sstevel@tonic-gate</service_bundle>
146