xref: /illumos-gate/usr/src/cmd/fs.d/nfs/svc/nlockmgr.xml (revision 1a2d662a91cee3bf82f41cd47c7ae6f3825d9db2)
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	Copyright (c) 2012, 2015 by Delphix. All rights reserved.
25	Copyright 2018 Nexenta Systems, Inc.  All rights reserved.
26	Copyright 2019 Nexenta by DDN, Inc.  All rights reserved.
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-nlockmgr'>
39
40<service
41	name='network/nfs/nlockmgr'
42	type='service'
43	version='2'>
44
45	<dependency name='network'
46	    grouping='require_any'
47	    restart_on='error'
48	    type='service'>
49		<service_fmri value='svc:/milestone/network' />
50	</dependency>
51
52	<dependency name='rpcbind'
53	    grouping='require_all'
54	    restart_on='restart'
55	    type='service'>
56		<service_fmri value='svc:/network/rpc/bind' />
57	</dependency>
58
59	<dependency name='status'
60	    grouping='require_all'
61	    restart_on='error'
62	    type='service'>
63		<service_fmri value='svc:/network/nfs/status' />
64	</dependency>
65
66	<dependency name='filesystem-minimal'
67	    grouping='require_all'
68	    restart_on='error'
69	    type='service'>
70		<service_fmri value='svc:/system/filesystem/minimal' />
71	</dependency>
72
73	<exec_method
74	    type='method'
75	    name='start'
76	    exec='/lib/svc/method/nlockmgr'
77	    timeout_seconds='300' />
78
79	<exec_method
80	    type='method'
81	    name='stop'
82	    exec=':kill'
83	    timeout_seconds='60' />
84
85	<property_group name='firewall_context' type='com.sun,fw_definition'>
86		<propval name='isrpc' type='boolean' value='true' />
87		<propval name='name' type='astring' value='nlockmgr' />
88		<propval name='ipf_method' type='astring'
89			value='/lib/svc/method/nfs-server ipfilter' />
90	</property_group>
91
92	<property_group name='application' type='framework'>
93		<stability value='Evolving' />
94		<propval name='auto_enable' type='boolean' value='true' />
95	</property_group>
96	<instance name='default' enabled='false'>
97	  <property_group name='nfs-props' type='com.oracle.nfs,props'>
98	    <propval name='grace_period' type='integer' value='60'/>
99	    <propval name='lockd_listen_backlog' type='integer' value='32'/>
100	    <propval name='lockd_retransmit_timeout' type='integer' value='5'/>
101	    <propval name='lockd_servers' type='integer' value='256'/>
102	  </property_group>
103	</instance>
104	<stability value='Stable' />
105
106	<template>
107		<common_name>
108			<loctext xml:lang='C'>
109				NFS lock manager
110			</loctext>
111		</common_name>
112		<documentation>
113			<manpage title='lockd' section='8'
114				manpath='/usr/share/man' />
115		</documentation>
116	</template>
117</service>
118
119</service_bundle>
120