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 2015 Nexenta Systems, Inc.  All rights reserved.
  25         Copyright (c) 2012, 2015 by Delphix. All rights reserved.
  26 
  27         NOTE:  This service manifest is not editable; its contents will
  28         be overwritten by package or patch operations, including
  29         operating system upgrade.  Make customizations in a different
  30         file.
  31 
  32         Note: if this service is modified to consist of anything other
  33         than a single instance named 'default', you must make changes to
  34         $SRC/head/rpcsvc/daemon_utils.h and libnsl:open_daemon_lock().
  35 -->
  36 
  37 <service_bundle type='manifest' name='SUNWnfscr:nfs-nlockmgr'>
  38 
  39 <service
  40         name='network/nfs/nlockmgr'
  41         type='service'
  42         version='2'>
  43 
  44         <dependency name='network'
  45             grouping='require_any'
  46             restart_on='error'
  47             type='service'>
  48                 <service_fmri value='svc:/milestone/network' />
  49         </dependency>
  50 
  51         <dependency name='rpcbind'
  52             grouping='require_all'
  53             restart_on='restart'
  54             type='service'>
  55                 <service_fmri value='svc:/network/rpc/bind' />
  56         </dependency>
  57 
  58         <dependency name='status'
  59             grouping='require_all'
  60             restart_on='error'
  61             type='service'>
  62                 <service_fmri value='svc:/network/nfs/status' />
  63         </dependency>
  64 
  65         <dependency name='filesystem-minimal'
  66             grouping='require_all'
  67             restart_on='error'
  68             type='service'>
  69                 <service_fmri value='svc:/system/filesystem/minimal' />
  70         </dependency>
  71 
  72         <exec_method
  73             type='method'
  74             name='start'
  75             exec='/lib/svc/method/nlockmgr'
  76             timeout_seconds='300' />
  77 
  78         <exec_method
  79             type='method'
  80             name='stop'
  81             exec=':kill'
  82             timeout_seconds='60' />
  83 
  84         <property_group name='firewall_context' type='com.sun,fw_definition'>
  85                 <propval name='isrpc' type='boolean' value='true' />
  86                 <propval name='name' type='astring' value='nlockmgr' />
  87                 <propval name='ipf_method' type='astring'
  88                         value='/lib/svc/method/nfs-server ipfilter' />
  89         </property_group>
  90 
  91         <property_group name='application' type='framework'>
  92                 <stability value='Evolving' />
  93                 <propval name='auto_enable' type='boolean' value='true' />
  94         </property_group>
  95         <instance name='default' enabled='false'>
  96           <property_group name='nfs-props' type='com.oracle.nfs,props'>
  97             <propval name='grace_period' type='integer' value='10'/>
  98             <propval name='lockd_listen_backlog' type='integer' value='32'/>
  99             <propval name='lockd_retransmit_timeout' type='integer' value='5'/>
 100             <propval name='lockd_servers' type='integer' value='256'/>
 101           </property_group>
 102         </instance>
 103         <stability value='Stable' />
 104 
 105         <template>
 106                 <common_name>
 107                         <loctext xml:lang='C'>
 108                                 NFS lock manager
 109                         </loctext>
 110                 </common_name>
 111                 <documentation>
 112                         <manpage title='lockd' section='1M'
 113                                 manpath='/usr/share/man' />
 114                 </documentation>
 115         </template>
 116 </service>
 117 
 118 </service_bundle>