xref: /illumos-gate/usr/src/cmd/fs.d/nfs/svc/nlockmgr.xml (revision e77c795bcbe51aebd7579fe13cbf2a6d56eca47f)
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-nlockmgr'>
36
37<service
38	name='network/nfs/nlockmgr'
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='status'
57	    grouping='require_all'
58	    restart_on='error'
59	    type='service'>
60		<service_fmri value='svc:/network/nfs/status' />
61	</dependency>
62
63	<dependency name='filesystem-minimal'
64	    grouping='require_all'
65	    restart_on='error'
66	    type='service'>
67	    	<service_fmri value='svc:/system/filesystem/minimal' />
68	</dependency>
69
70	<exec_method
71	    type='method'
72	    name='start'
73	    exec='/lib/svc/method/nlockmgr'
74	    timeout_seconds='60' />
75
76	<exec_method
77	    type='method'
78	    name='stop'
79	    exec=':kill'
80	    timeout_seconds='60' />
81
82	<property_group name='firewall_context' type='com.sun,fw_definition'>
83		<propval name='isrpc' type='boolean' value='true' />
84		<propval name='name' type='astring' value='nlockmgr' />
85		<propval name='ipf_method' type='astring'
86			value='/lib/svc/method/nfs-server ipfilter' />
87	</property_group>
88
89	<property_group name='application' type='framework'>
90		<stability value='Evolving' />
91		<propval name='auto_enable' type='boolean' value='true' />
92	</property_group>
93	<instance name='default' enabled='false'>
94	  <property_group name='nfs-props' type='com.oracle.nfs,props'>
95	    <propval name='grace_period' type='integer' value='90'/>
96	    <propval name='lockd_listen_backlog' type='integer' value='32'/>
97	    <propval name='lockd_retransmit_timeout' type='integer' value='5'/>
98	    <propval name='lockd_servers' type='integer' value='20'/>
99	  </property_group>
100	</instance>
101	<stability value='Stable' />
102
103	<template>
104		<common_name>
105			<loctext xml:lang='C'>
106				NFS lock manager
107			</loctext>
108		</common_name>
109		<documentation>
110			<manpage title='lockd' section='1M'
111				manpath='/usr/share/man' />
112		</documentation>
113	</template>
114</service>
115
116</service_bundle>
117