xref: /illumos-gate/usr/src/cmd/fs.d/nfs/svc/nlockmgr.xml (revision 0dfe541e13279d277d838d6a27e55188b9486cb1)
17c478bd9Sstevel@tonic-gate<?xml version="1.0"?>
27c478bd9Sstevel@tonic-gate<!DOCTYPE service_bundle SYSTEM "/usr/share/lib/xml/dtd/service_bundle.dtd.1">
37c478bd9Sstevel@tonic-gate<!--
47c478bd9Sstevel@tonic-gate CDDL HEADER START
57c478bd9Sstevel@tonic-gate
67c478bd9Sstevel@tonic-gate The contents of this file are subject to the terms of the
7064ed339Sjjj Common Development and Distribution License (the "License").
8064ed339Sjjj You may not use this file except in compliance with the License.
97c478bd9Sstevel@tonic-gate
107c478bd9Sstevel@tonic-gate You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
117c478bd9Sstevel@tonic-gate or http://www.opensolaris.org/os/licensing.
127c478bd9Sstevel@tonic-gate See the License for the specific language governing permissions
137c478bd9Sstevel@tonic-gate and limitations under the License.
147c478bd9Sstevel@tonic-gate
157c478bd9Sstevel@tonic-gate When distributing Covered Code, include this CDDL HEADER in each
167c478bd9Sstevel@tonic-gate file and include the License file at usr/src/OPENSOLARIS.LICENSE.
177c478bd9Sstevel@tonic-gate If applicable, add the following below this CDDL HEADER, with the
187c478bd9Sstevel@tonic-gate fields enclosed by brackets "[]" replaced with your own identifying
197c478bd9Sstevel@tonic-gate information: Portions Copyright [yyyy] [name of copyright owner]
207c478bd9Sstevel@tonic-gate
217c478bd9Sstevel@tonic-gate CDDL HEADER END
227c478bd9Sstevel@tonic-gate
23dd51520eSPavan Mettu - Oracle Corporation - Menlo Park United States	Copyright (c) 2004, 2010, Oracle and/or its affiliates. All rights reserved.
247b4e6d92SPaul Dagnelie	Copyright (c) 2012, 2015 by Delphix. All rights reserved.
25*0dfe541eSEvan Layton	Copyright 2018 Nexenta Systems, Inc.  All rights reserved.
26*0dfe541eSEvan Layton	Copyright 2019 Nexenta by DDN, Inc.  All rights reserved.
27dd51520eSPavan Mettu - Oracle Corporation - Menlo Park United States
287c478bd9Sstevel@tonic-gate	NOTE:  This service manifest is not editable; its contents will
297c478bd9Sstevel@tonic-gate	be overwritten by package or patch operations, including
307c478bd9Sstevel@tonic-gate	operating system upgrade.  Make customizations in a different
317c478bd9Sstevel@tonic-gate	file.
327c478bd9Sstevel@tonic-gate
337c478bd9Sstevel@tonic-gate	Note: if this service is modified to consist of anything other
347c478bd9Sstevel@tonic-gate	than a single instance named 'default', you must make changes to
357c478bd9Sstevel@tonic-gate	$SRC/head/rpcsvc/daemon_utils.h and libnsl:open_daemon_lock().
367c478bd9Sstevel@tonic-gate-->
377c478bd9Sstevel@tonic-gate
387c478bd9Sstevel@tonic-gate<service_bundle type='manifest' name='SUNWnfscr:nfs-nlockmgr'>
397c478bd9Sstevel@tonic-gate
407c478bd9Sstevel@tonic-gate<service
417c478bd9Sstevel@tonic-gate	name='network/nfs/nlockmgr'
427c478bd9Sstevel@tonic-gate	type='service'
43201f5ebaSSebastien Roy	version='2'>
447c478bd9Sstevel@tonic-gate
457c478bd9Sstevel@tonic-gate	<dependency name='network'
467c478bd9Sstevel@tonic-gate	    grouping='require_any'
477c478bd9Sstevel@tonic-gate	    restart_on='error'
487c478bd9Sstevel@tonic-gate	    type='service'>
497c478bd9Sstevel@tonic-gate		<service_fmri value='svc:/milestone/network' />
507c478bd9Sstevel@tonic-gate	</dependency>
517c478bd9Sstevel@tonic-gate
527c478bd9Sstevel@tonic-gate	<dependency name='rpcbind'
537c478bd9Sstevel@tonic-gate	    grouping='require_all'
547c478bd9Sstevel@tonic-gate	    restart_on='restart'
557c478bd9Sstevel@tonic-gate	    type='service'>
567c478bd9Sstevel@tonic-gate		<service_fmri value='svc:/network/rpc/bind' />
577c478bd9Sstevel@tonic-gate	</dependency>
587c478bd9Sstevel@tonic-gate
597c478bd9Sstevel@tonic-gate	<dependency name='status'
607c478bd9Sstevel@tonic-gate	    grouping='require_all'
617c478bd9Sstevel@tonic-gate	    restart_on='error'
627c478bd9Sstevel@tonic-gate	    type='service'>
637c478bd9Sstevel@tonic-gate		<service_fmri value='svc:/network/nfs/status' />
647c478bd9Sstevel@tonic-gate	</dependency>
657c478bd9Sstevel@tonic-gate
667c478bd9Sstevel@tonic-gate	<dependency name='filesystem-minimal'
677c478bd9Sstevel@tonic-gate	    grouping='require_all'
687c478bd9Sstevel@tonic-gate	    restart_on='error'
697c478bd9Sstevel@tonic-gate	    type='service'>
707c478bd9Sstevel@tonic-gate		<service_fmri value='svc:/system/filesystem/minimal' />
717c478bd9Sstevel@tonic-gate	</dependency>
727c478bd9Sstevel@tonic-gate
737c478bd9Sstevel@tonic-gate	<exec_method
747c478bd9Sstevel@tonic-gate	    type='method'
757c478bd9Sstevel@tonic-gate	    name='start'
76064ed339Sjjj	    exec='/lib/svc/method/nlockmgr'
777b4e6d92SPaul Dagnelie	    timeout_seconds='300' />
787c478bd9Sstevel@tonic-gate
797c478bd9Sstevel@tonic-gate	<exec_method
807c478bd9Sstevel@tonic-gate	    type='method'
817c478bd9Sstevel@tonic-gate	    name='stop'
827c478bd9Sstevel@tonic-gate	    exec=':kill'
837c478bd9Sstevel@tonic-gate	    timeout_seconds='60' />
847c478bd9Sstevel@tonic-gate
85eb1a3463STruong Nguyen	<property_group name='firewall_context' type='com.sun,fw_definition'>
86eb1a3463STruong Nguyen		<propval name='isrpc' type='boolean' value='true' />
87eb1a3463STruong Nguyen		<propval name='name' type='astring' value='nlockmgr' />
88eb1a3463STruong Nguyen		<propval name='ipf_method' type='astring'
89eb1a3463STruong Nguyen			value='/lib/svc/method/nfs-server ipfilter' />
90eb1a3463STruong Nguyen	</property_group>
91eb1a3463STruong Nguyen
927c478bd9Sstevel@tonic-gate	<property_group name='application' type='framework'>
937c478bd9Sstevel@tonic-gate		<stability value='Evolving' />
947c478bd9Sstevel@tonic-gate		<propval name='auto_enable' type='boolean' value='true' />
957c478bd9Sstevel@tonic-gate	</property_group>
96dd51520eSPavan Mettu - Oracle Corporation - Menlo Park United States	<instance name='default' enabled='false'>
97dd51520eSPavan Mettu - Oracle Corporation - Menlo Park United States	  <property_group name='nfs-props' type='com.oracle.nfs,props'>
98*0dfe541eSEvan Layton	    <propval name='grace_period' type='integer' value='60'/>
99dd51520eSPavan Mettu - Oracle Corporation - Menlo Park United States	    <propval name='lockd_listen_backlog' type='integer' value='32'/>
100dd51520eSPavan Mettu - Oracle Corporation - Menlo Park United States	    <propval name='lockd_retransmit_timeout' type='integer' value='5'/>
101201f5ebaSSebastien Roy	    <propval name='lockd_servers' type='integer' value='256'/>
102dd51520eSPavan Mettu - Oracle Corporation - Menlo Park United States	  </property_group>
103dd51520eSPavan Mettu - Oracle Corporation - Menlo Park United States	</instance>
1047c478bd9Sstevel@tonic-gate	<stability value='Stable' />
1057c478bd9Sstevel@tonic-gate
1067c478bd9Sstevel@tonic-gate	<template>
1077c478bd9Sstevel@tonic-gate		<common_name>
1087c478bd9Sstevel@tonic-gate			<loctext xml:lang='C'>
1097c478bd9Sstevel@tonic-gate				NFS lock manager
1107c478bd9Sstevel@tonic-gate			</loctext>
1117c478bd9Sstevel@tonic-gate		</common_name>
1127c478bd9Sstevel@tonic-gate		<documentation>
1137c478bd9Sstevel@tonic-gate			<manpage title='lockd' section='1M'
1147c478bd9Sstevel@tonic-gate				manpath='/usr/share/man' />
1157c478bd9Sstevel@tonic-gate		</documentation>
1167c478bd9Sstevel@tonic-gate	</template>
1177c478bd9Sstevel@tonic-gate</service>
1187c478bd9Sstevel@tonic-gate
1197c478bd9Sstevel@tonic-gate</service_bundle>
120