xref: /titanic_41/usr/src/cmd/fs.d/nfs/svc/cbd.xml (revision 989f28072d20c73ae0955d6a1e3e2fc74831cb39)
1<?xml version="1.0"?>
2<!DOCTYPE service_bundle SYSTEM "/usr/share/lib/xml/dtd/service_bundle.dtd.1">
3<!--
4 Copyright 2009 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	NOTE:  This service manifest is not editable; its contents will
27	be overwritten by package or patch operations, including
28	operating system upgrade.  Make customizations in a different
29	file.
30
31	Note: if this service is modified to consist of anything other
32	than a single instance named 'default', you must make changes to
33	$SRC/head/rpcsvc/daemon_utils.h and libnsl:open_daemon_lock().
34-->
35
36<service_bundle type='manifest' name='SUNWnfscr:nfs-cbd'>
37
38<service
39	name='network/nfs/cbd'
40	type='service'
41	version='1'>
42
43	<create_default_instance enabled='false' />
44
45	<single_instance />
46
47	<dependency name='network'
48	    grouping='require_any'
49	    restart_on='error'
50	    type='service'>
51		<service_fmri value='svc:/milestone/network' />
52	</dependency>
53
54	<dependency name='rpcbind'
55	    grouping='require_all'
56	    restart_on='restart'
57	    type='service'>
58		<service_fmri value='svc:/network/rpc/bind' />
59	</dependency>
60
61	<dependency name='name-services'
62	    grouping='require_all'
63	    restart_on='refresh'
64	    type='service'>
65		<service_fmri value='svc:/milestone/name-services' />
66	</dependency>
67
68	<dependency name='filesystem-minimal'
69	    grouping='require_all'
70	    restart_on='error'
71	    type='service'>
72	    	<service_fmri value='svc:/system/filesystem/minimal' />
73	</dependency>
74
75	<exec_method
76	    type='method'
77	    name='start'
78	    exec='/usr/lib/nfs/nfs4cbd'
79	    timeout_seconds='60' />
80
81	<exec_method
82	    type='method'
83	    name='stop'
84	    exec=':kill'
85	    timeout_seconds='60' />
86
87	<property_group name='firewall_context' type='com.sun,fw_definition'>
88		<propval name='isrpc' type='boolean' value='true' />
89		<propval name='name' type='astring' value='1073741824' />
90		<propval name='ipf_method' type='astring'
91			value='/lib/svc/method/nfs-server ipfilter' />
92	</property_group>
93
94	<property_group name='application' type='framework'>
95		<stability value='Evolving' />
96		<propval name='auto_enable' type='boolean' value='true' />
97	</property_group>
98
99	<stability value='Stable' />
100
101	<template>
102		<common_name>
103			<loctext xml:lang='C'>
104			NFS callback service
105			</loctext>
106		</common_name>
107		<documentation>
108			<manpage title='nfs4cbd' section='1M'
109				manpath='/usr/share/man' />
110		</documentation>
111	</template>
112</service>
113
114</service_bundle>
115