xref: /illumos-gate/usr/src/cmd/fs.d/nfs/svc/mapid.xml (revision 69a119caa6570c7077699161b7c28b6ee9f8b0f4)
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    Note: if this service is modified to consist of anything other
31    than a single instance named 'default', you must make changes to
32    $SRC/head/rpcsvc/daemon_utils.h and libnsl:open_daemon_lock().
33-->
34
35<service_bundle type='manifest' name='SUNWnfscr:nfs-mapid'>
36
37<service
38	name='network/nfs/mapid'
39	type='service'
40	version='1'>
41
42	<dependency name='network'
43	    grouping='require_any'
44	    restart_on='error'
45	    type='service'>
46		<service_fmri value='svc:/milestone/network' />
47	</dependency>
48
49	<dependency name='rpcbind'
50	    grouping='require_all'
51	    restart_on='restart'
52	    type='service'>
53		<service_fmri value='svc:/network/rpc/bind' />
54	</dependency>
55
56	<dependency name='name-services'
57	    grouping='require_all'
58	    restart_on='refresh'
59	    type='service'>
60		<service_fmri value='svc:/milestone/name-services' />
61	</dependency>
62
63	<dependency name='idmap'
64	    grouping='optional_all'
65	    restart_on='none'
66	    type='service'>
67		<service_fmri value='svc:/system/idmap' />
68	</dependency>
69
70	<dependency name='filesystem-minimal'
71	    grouping='require_all'
72	    restart_on='error'
73	    type='service'>
74	    	<service_fmri value='svc:/system/filesystem/minimal' />
75	</dependency>
76
77	<exec_method
78	    type='method'
79	    name='start'
80	    exec='/usr/lib/nfs/nfsmapid'
81	    timeout_seconds='60' />
82
83	<exec_method
84	    type='method'
85	    name='refresh'
86	    exec='/usr/bin/kill -HUP `/usr/bin/cat /etc/svc/volatile/nfs-mapid.lock`'
87	    timeout_seconds='60' />
88
89	<exec_method
90	    type='method'
91	    name='stop'
92	    exec=':kill'
93	    timeout_seconds='60' />
94
95	<property_group name='application' type='framework'>
96		<stability value='Evolving' />
97		<propval name='auto_enable' type='boolean' value='true' />
98	</property_group>
99	<instance name='default' enabled='false'>
100	  <property_group name='nfs-props' type='com.oracle.nfs,props'>
101	    <propval name='nfsmapid_domain' type='astring' value=''/>
102	  </property_group>
103	</instance>
104
105	<stability value='Stable' />
106
107	<template>
108		<common_name>
109			<loctext xml:lang='C'>
110				NFS ID mapper
111			</loctext>
112		</common_name>
113		<documentation>
114			<manpage title='nfsmapid' section='1M'
115				manpath='/usr/share/man' />
116		</documentation>
117	</template>
118</service>
119
120</service_bundle>
121