xref: /illumos-gate/usr/src/cmd/fs.d/nfs/svc/mapid.xml (revision bbf21555)
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<!--
4dd51520eSPavan Mettu - Oracle Corporation - Menlo Park United States    CDDL HEADER START
57c478bd9Sstevel@tonic-gate
6dd51520eSPavan Mettu - Oracle Corporation - Menlo Park United States    The contents of this file are subject to the terms of the
7dd51520eSPavan Mettu - Oracle Corporation - Menlo Park United States    Common Development and Distribution License (the "License").
8dd51520eSPavan Mettu - Oracle Corporation - Menlo Park United States    You may not use this file except in compliance with the License.
97c478bd9Sstevel@tonic-gate
10dd51520eSPavan Mettu - Oracle Corporation - Menlo Park United States    You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
11dd51520eSPavan Mettu - Oracle Corporation - Menlo Park United States    or http://www.opensolaris.org/os/licensing.
12dd51520eSPavan Mettu - Oracle Corporation - Menlo Park United States    See the License for the specific language governing permissions
13dd51520eSPavan Mettu - Oracle Corporation - Menlo Park United States    and limitations under the License.
147c478bd9Sstevel@tonic-gate
15dd51520eSPavan Mettu - Oracle Corporation - Menlo Park United States    When distributing Covered Code, include this CDDL HEADER in each
16dd51520eSPavan Mettu - Oracle Corporation - Menlo Park United States    file and include the License file at usr/src/OPENSOLARIS.LICENSE.
17dd51520eSPavan Mettu - Oracle Corporation - Menlo Park United States    If applicable, add the following below this CDDL HEADER, with the
18dd51520eSPavan Mettu - Oracle Corporation - Menlo Park United States    fields enclosed by brackets "[]" replaced with your own identifying
19dd51520eSPavan Mettu - Oracle Corporation - Menlo Park United States    information: Portions Copyright [yyyy] [name of copyright owner]
207c478bd9Sstevel@tonic-gate
21dd51520eSPavan Mettu - Oracle Corporation - Menlo Park United States    CDDL HEADER END
227c478bd9Sstevel@tonic-gate
23*bbf21555SRichard Lowe    Copyright (c) 2004, 2010, Oracle and/or its affiliates. All rights reserved.
247c478bd9Sstevel@tonic-gate
25dd51520eSPavan Mettu - Oracle Corporation - Menlo Park United States    NOTE:  This service manifest is not editable; its contents will
26dd51520eSPavan Mettu - Oracle Corporation - Menlo Park United States    be overwritten by package or patch operations, including
27dd51520eSPavan Mettu - Oracle Corporation - Menlo Park United States    operating system upgrade.  Make customizations in a different
28dd51520eSPavan Mettu - Oracle Corporation - Menlo Park United States    file.
297c478bd9Sstevel@tonic-gate
30dd51520eSPavan Mettu - Oracle Corporation - Menlo Park United States    Note: if this service is modified to consist of anything other
31dd51520eSPavan Mettu - Oracle Corporation - Menlo Park United States    than a single instance named 'default', you must make changes to
32dd51520eSPavan Mettu - Oracle Corporation - Menlo Park United States    $SRC/head/rpcsvc/daemon_utils.h and libnsl:open_daemon_lock().
337c478bd9Sstevel@tonic-gate-->
347c478bd9Sstevel@tonic-gate
357c478bd9Sstevel@tonic-gate<service_bundle type='manifest' name='SUNWnfscr:nfs-mapid'>
367c478bd9Sstevel@tonic-gate
377c478bd9Sstevel@tonic-gate<service
387c478bd9Sstevel@tonic-gate	name='network/nfs/mapid'
397c478bd9Sstevel@tonic-gate	type='service'
407c478bd9Sstevel@tonic-gate	version='1'>
417c478bd9Sstevel@tonic-gate
427c478bd9Sstevel@tonic-gate	<dependency name='network'
437c478bd9Sstevel@tonic-gate	    grouping='require_any'
447c478bd9Sstevel@tonic-gate	    restart_on='error'
457c478bd9Sstevel@tonic-gate	    type='service'>
467c478bd9Sstevel@tonic-gate		<service_fmri value='svc:/milestone/network' />
477c478bd9Sstevel@tonic-gate	</dependency>
487c478bd9Sstevel@tonic-gate
497c478bd9Sstevel@tonic-gate	<dependency name='rpcbind'
507c478bd9Sstevel@tonic-gate	    grouping='require_all'
517c478bd9Sstevel@tonic-gate	    restart_on='restart'
527c478bd9Sstevel@tonic-gate	    type='service'>
537c478bd9Sstevel@tonic-gate		<service_fmri value='svc:/network/rpc/bind' />
547c478bd9Sstevel@tonic-gate	</dependency>
557c478bd9Sstevel@tonic-gate
567c478bd9Sstevel@tonic-gate	<dependency name='name-services'
577c478bd9Sstevel@tonic-gate	    grouping='require_all'
587c478bd9Sstevel@tonic-gate	    restart_on='refresh'
597c478bd9Sstevel@tonic-gate	    type='service'>
607c478bd9Sstevel@tonic-gate		<service_fmri value='svc:/milestone/name-services' />
617c478bd9Sstevel@tonic-gate	</dependency>
62dd5829d1Sbaban
63dd5829d1Sbaban	<dependency name='idmap'
64dd5829d1Sbaban	    grouping='optional_all'
65dd5829d1Sbaban	    restart_on='none'
66dd5829d1Sbaban	    type='service'>
67dd5829d1Sbaban		<service_fmri value='svc:/system/idmap' />
68dd5829d1Sbaban	</dependency>
697c478bd9Sstevel@tonic-gate
707c478bd9Sstevel@tonic-gate	<dependency name='filesystem-minimal'
717c478bd9Sstevel@tonic-gate	    grouping='require_all'
727c478bd9Sstevel@tonic-gate	    restart_on='error'
737c478bd9Sstevel@tonic-gate	    type='service'>
74*bbf21555SRichard Lowe		<service_fmri value='svc:/system/filesystem/minimal' />
757c478bd9Sstevel@tonic-gate	</dependency>
767c478bd9Sstevel@tonic-gate
777c478bd9Sstevel@tonic-gate	<exec_method
787c478bd9Sstevel@tonic-gate	    type='method'
797c478bd9Sstevel@tonic-gate	    name='start'
807c478bd9Sstevel@tonic-gate	    exec='/usr/lib/nfs/nfsmapid'
817c478bd9Sstevel@tonic-gate	    timeout_seconds='60' />
827c478bd9Sstevel@tonic-gate
837c478bd9Sstevel@tonic-gate	<exec_method
847c478bd9Sstevel@tonic-gate	    type='method'
857c478bd9Sstevel@tonic-gate	    name='refresh'
867c478bd9Sstevel@tonic-gate	    exec='/usr/bin/kill -HUP `/usr/bin/cat /etc/svc/volatile/nfs-mapid.lock`'
877c478bd9Sstevel@tonic-gate	    timeout_seconds='60' />
887c478bd9Sstevel@tonic-gate
897c478bd9Sstevel@tonic-gate	<exec_method
907c478bd9Sstevel@tonic-gate	    type='method'
917c478bd9Sstevel@tonic-gate	    name='stop'
927c478bd9Sstevel@tonic-gate	    exec=':kill'
937c478bd9Sstevel@tonic-gate	    timeout_seconds='60' />
947c478bd9Sstevel@tonic-gate
957c478bd9Sstevel@tonic-gate	<property_group name='application' type='framework'>
967c478bd9Sstevel@tonic-gate		<stability value='Evolving' />
977c478bd9Sstevel@tonic-gate		<propval name='auto_enable' type='boolean' value='true' />
987c478bd9Sstevel@tonic-gate	</property_group>
99dd51520eSPavan Mettu - Oracle Corporation - Menlo Park United States	<instance name='default' enabled='false'>
100dd51520eSPavan Mettu - Oracle Corporation - Menlo Park United States	  <property_group name='nfs-props' type='com.oracle.nfs,props'>
101dd51520eSPavan Mettu - Oracle Corporation - Menlo Park United States	    <propval name='nfsmapid_domain' type='astring' value=''/>
102dd51520eSPavan Mettu - Oracle Corporation - Menlo Park United States	  </property_group>
103dd51520eSPavan Mettu - Oracle Corporation - Menlo Park United States	</instance>
1047c478bd9Sstevel@tonic-gate
1057c478bd9Sstevel@tonic-gate	<stability value='Stable' />
1067c478bd9Sstevel@tonic-gate
1077c478bd9Sstevel@tonic-gate	<template>
1087c478bd9Sstevel@tonic-gate		<common_name>
1097c478bd9Sstevel@tonic-gate			<loctext xml:lang='C'>
1107c478bd9Sstevel@tonic-gate				NFS ID mapper
1117c478bd9Sstevel@tonic-gate			</loctext>
1127c478bd9Sstevel@tonic-gate		</common_name>
1137c478bd9Sstevel@tonic-gate		<documentation>
114*bbf21555SRichard Lowe			<manpage title='nfsmapid' section='8'
1157c478bd9Sstevel@tonic-gate				manpath='/usr/share/man' />
1167c478bd9Sstevel@tonic-gate		</documentation>
1177c478bd9Sstevel@tonic-gate	</template>
1187c478bd9Sstevel@tonic-gate</service>
1197c478bd9Sstevel@tonic-gate
1207c478bd9Sstevel@tonic-gate</service_bundle>
121