xref: /titanic_44/usr/src/cmd/fs.d/nfs/svc/mapid.xml (revision 269473047d747f7815af570197e4ef7322d3632c)
1<?xml version="1.0"?>
2<!DOCTYPE service_bundle SYSTEM "/usr/share/lib/xml/dtd/service_bundle.dtd.1">
3<!--
4 Copyright 2007 Sun Microsystems, Inc.  All rights reserved.
5 Use is subject to license terms.
6
7 CDDL HEADER START
8
9 The contents of this file are subject to the terms of the
10 Common Development and Distribution License (the "License").
11 You may not use this file except in compliance with the License.
12
13 You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
14 or http://www.opensolaris.org/os/licensing.
15 See the License for the specific language governing permissions
16 and limitations under the License.
17
18 When distributing Covered Code, include this CDDL HEADER in each
19 file and include the License file at usr/src/OPENSOLARIS.LICENSE.
20 If applicable, add the following below this CDDL HEADER, with the
21 fields enclosed by brackets "[]" replaced with your own identifying
22 information: Portions Copyright [yyyy] [name of copyright owner]
23
24 CDDL HEADER END
25
26	ident	"%Z%%M%	%I%	%E% SMI"
27
28	NOTE:  This service manifest is not editable; its contents will
29	be overwritten by package or patch operations, including
30	operating system upgrade.  Make customizations in a different
31	file.
32
33	Note: if this service is modified to consist of anything other
34	than a single instance named 'default', you must make changes to
35	$SRC/head/rpcsvc/daemon_utils.h and libnsl:open_daemon_lock().
36-->
37
38<service_bundle type='manifest' name='SUNWnfscr:nfs-mapid'>
39
40<service
41	name='network/nfs/mapid'
42	type='service'
43	version='1'>
44
45	<create_default_instance enabled='false' />
46
47	<single_instance />
48
49	<dependency name='network'
50	    grouping='require_any'
51	    restart_on='error'
52	    type='service'>
53		<service_fmri value='svc:/milestone/network' />
54	</dependency>
55
56	<dependency name='rpcbind'
57	    grouping='require_all'
58	    restart_on='restart'
59	    type='service'>
60		<service_fmri value='svc:/network/rpc/bind' />
61	</dependency>
62
63	<dependency name='name-services'
64	    grouping='require_all'
65	    restart_on='refresh'
66	    type='service'>
67		<service_fmri value='svc:/milestone/name-services' />
68	</dependency>
69
70	<dependency name='idmap'
71	    grouping='optional_all'
72	    restart_on='none'
73	    type='service'>
74		<service_fmri value='svc:/system/idmap' />
75	</dependency>
76
77	<dependency name='filesystem-minimal'
78	    grouping='require_all'
79	    restart_on='error'
80	    type='service'>
81	    	<service_fmri value='svc:/system/filesystem/minimal' />
82	</dependency>
83
84	<exec_method
85	    type='method'
86	    name='start'
87	    exec='/usr/lib/nfs/nfsmapid'
88	    timeout_seconds='60' />
89
90	<exec_method
91	    type='method'
92	    name='refresh'
93	    exec='/usr/bin/kill -HUP `/usr/bin/cat /etc/svc/volatile/nfs-mapid.lock`'
94	    timeout_seconds='60' />
95
96	<exec_method
97	    type='method'
98	    name='stop'
99	    exec=':kill'
100	    timeout_seconds='60' />
101
102	<property_group name='application' type='framework'>
103		<stability value='Evolving' />
104		<propval name='auto_enable' type='boolean' value='true' />
105	</property_group>
106
107	<stability value='Stable' />
108
109	<template>
110		<common_name>
111			<loctext xml:lang='C'>
112				NFS ID mapper
113			</loctext>
114		</common_name>
115		<documentation>
116			<manpage title='nfsmapid' section='1M'
117				manpath='/usr/share/man' />
118		</documentation>
119	</template>
120</service>
121
122</service_bundle>
123