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 57c478bd9Sstevel@tonic-gate CDDL HEADER START 67c478bd9Sstevel@tonic-gate 77c478bd9Sstevel@tonic-gate The contents of this file are subject to the terms of the 86185db85Sdougm Common Development and Distribution License (the "License"). 96185db85Sdougm You may not use this file except in compliance with the License. 107c478bd9Sstevel@tonic-gate 117c478bd9Sstevel@tonic-gate You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE 127c478bd9Sstevel@tonic-gate or http://www.opensolaris.org/os/licensing. 137c478bd9Sstevel@tonic-gate See the License for the specific language governing permissions 147c478bd9Sstevel@tonic-gate and limitations under the License. 157c478bd9Sstevel@tonic-gate 167c478bd9Sstevel@tonic-gate When distributing Covered Code, include this CDDL HEADER in each 177c478bd9Sstevel@tonic-gate file and include the License file at usr/src/OPENSOLARIS.LICENSE. 187c478bd9Sstevel@tonic-gate If applicable, add the following below this CDDL HEADER, with the 197c478bd9Sstevel@tonic-gate fields enclosed by brackets "[]" replaced with your own identifying 207c478bd9Sstevel@tonic-gate information: Portions Copyright [yyyy] [name of copyright owner] 217c478bd9Sstevel@tonic-gate 227c478bd9Sstevel@tonic-gate CDDL HEADER END 237c478bd9Sstevel@tonic-gate 24dd51520eSPavan Mettu - Oracle Corporation - Menlo Park United States Copyright (c) 2004, 2010, Oracle and/or its affiliates. All rights reserved. 25*7ddce999SHans Rosenfeld Copyright 2014 Nexenta Systems, Inc. All rights reserved 26*7ddce999SHans Rosenfeld Copyright 2016 Hans Rosenfeld <rosenfeld@grumpf.hope-2000.org> 276185db85Sdougm 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='SUNWnfssr:nfs-server'> 397c478bd9Sstevel@tonic-gate 407c478bd9Sstevel@tonic-gate<service 417c478bd9Sstevel@tonic-gate name='network/nfs/server' 427c478bd9Sstevel@tonic-gate type='service' 437c478bd9Sstevel@tonic-gate version='1'> 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='nlockmgr' 537c478bd9Sstevel@tonic-gate grouping='require_all' 547c478bd9Sstevel@tonic-gate restart_on='error' 557c478bd9Sstevel@tonic-gate type='service'> 567c478bd9Sstevel@tonic-gate <service_fmri value='svc:/network/nfs/nlockmgr' /> 577c478bd9Sstevel@tonic-gate </dependency> 587c478bd9Sstevel@tonic-gate 597c478bd9Sstevel@tonic-gate <dependency name='mapid' 607c478bd9Sstevel@tonic-gate grouping='optional_all' 617c478bd9Sstevel@tonic-gate restart_on='error' 627c478bd9Sstevel@tonic-gate type='service'> 637c478bd9Sstevel@tonic-gate <service_fmri value='svc:/network/nfs/mapid' /> 647c478bd9Sstevel@tonic-gate </dependency> 657c478bd9Sstevel@tonic-gate 667c478bd9Sstevel@tonic-gate <dependency name='rpcbind' 677c478bd9Sstevel@tonic-gate grouping='require_all' 687c478bd9Sstevel@tonic-gate restart_on='restart' 697c478bd9Sstevel@tonic-gate type='service'> 707c478bd9Sstevel@tonic-gate <service_fmri value='svc:/network/rpc/bind' /> 717c478bd9Sstevel@tonic-gate </dependency> 727c478bd9Sstevel@tonic-gate 737c478bd9Sstevel@tonic-gate <dependency name='keyserv' 747c478bd9Sstevel@tonic-gate grouping='optional_all' 757c478bd9Sstevel@tonic-gate restart_on='none' 767c478bd9Sstevel@tonic-gate type='service'> 777c478bd9Sstevel@tonic-gate <service_fmri value='svc:/network/rpc/keyserv' /> 787c478bd9Sstevel@tonic-gate </dependency> 797c478bd9Sstevel@tonic-gate 807c478bd9Sstevel@tonic-gate <dependency name='gss' 817c478bd9Sstevel@tonic-gate grouping='optional_all' 827c478bd9Sstevel@tonic-gate restart_on='none' 837c478bd9Sstevel@tonic-gate type='service'> 847c478bd9Sstevel@tonic-gate <service_fmri value='svc:/network/rpc/gss' /> 857c478bd9Sstevel@tonic-gate </dependency> 867c478bd9Sstevel@tonic-gate 876185db85Sdougm <dependency name='share-group' 886185db85Sdougm grouping='optional_all' 896185db85Sdougm restart_on='none' 906185db85Sdougm type='service'> 916185db85Sdougm <service_fmri value='svc:/network/shares/group' /> 926185db85Sdougm </dependency> 936185db85Sdougm 942f172c55SRobert Thurlow <dependency name='reparse' 952f172c55SRobert Thurlow grouping='optional_all' 962f172c55SRobert Thurlow restart_on='none' 972f172c55SRobert Thurlow type='service'> 982f172c55SRobert Thurlow <service_fmri value='svc:/system/filesystem/reparse' /> 992f172c55SRobert Thurlow </dependency> 1002f172c55SRobert Thurlow 1017c478bd9Sstevel@tonic-gate <!-- Must have all local filesystems mounted before we share them --> 1027c478bd9Sstevel@tonic-gate <dependency name='filesystem-local' 1037c478bd9Sstevel@tonic-gate grouping='require_all' 1047c478bd9Sstevel@tonic-gate restart_on='error' 1057c478bd9Sstevel@tonic-gate type='service'> 1067c478bd9Sstevel@tonic-gate <service_fmri value='svc:/system/filesystem/local' /> 1077c478bd9Sstevel@tonic-gate </dependency> 1087c478bd9Sstevel@tonic-gate 1097c478bd9Sstevel@tonic-gate <dependent 1107c478bd9Sstevel@tonic-gate name='nfs-server_multi-user-server' 1117c478bd9Sstevel@tonic-gate grouping='optional_all' 1127c478bd9Sstevel@tonic-gate restart_on='none'> 1137c478bd9Sstevel@tonic-gate <service_fmri value='svc:/milestone/multi-user-server' /> 1147c478bd9Sstevel@tonic-gate </dependent> 1157c478bd9Sstevel@tonic-gate 1167c478bd9Sstevel@tonic-gate <!-- 1177c478bd9Sstevel@tonic-gate The shareall done as part of the nfs-server method may take a 1187c478bd9Sstevel@tonic-gate long time, as the contents of dfstab can be arbitrarily large. 1193fd3a04aSthurlow Set the timeout appropriately for both 'start' and 'refresh'. 1207c478bd9Sstevel@tonic-gate --> 1217c478bd9Sstevel@tonic-gate <exec_method 1227c478bd9Sstevel@tonic-gate type='method' 1237c478bd9Sstevel@tonic-gate name='start' 1247c478bd9Sstevel@tonic-gate exec='/lib/svc/method/nfs-server %m' 1257c478bd9Sstevel@tonic-gate timeout_seconds='3600' /> 1267c478bd9Sstevel@tonic-gate 1273fd3a04aSthurlow <exec_method 1283fd3a04aSthurlow type='method' 1293fd3a04aSthurlow name='refresh' 1303fd3a04aSthurlow exec='/lib/svc/method/nfs-server %m' 1313fd3a04aSthurlow timeout_seconds='3600' /> 1323fd3a04aSthurlow 1337c478bd9Sstevel@tonic-gate <!-- 1347c478bd9Sstevel@tonic-gate The stop method runs unshareall as well as up to a 10 second 1357c478bd9Sstevel@tonic-gate sleep to do graceful versus forceful shutdown of daemons. Set 1367c478bd9Sstevel@tonic-gate the timeout appropriately. 1377c478bd9Sstevel@tonic-gate --> 1387c478bd9Sstevel@tonic-gate <exec_method 1397c478bd9Sstevel@tonic-gate type='method' 1407c478bd9Sstevel@tonic-gate name='stop' 1417c478bd9Sstevel@tonic-gate exec='/lib/svc/method/nfs-server %m %{restarter/contract}' 1427c478bd9Sstevel@tonic-gate timeout_seconds='3600' /> 1437c478bd9Sstevel@tonic-gate 1447c478bd9Sstevel@tonic-gate <property_group name='application' type='framework'> 1457c478bd9Sstevel@tonic-gate <stability value='Evolving' /> 1467c478bd9Sstevel@tonic-gate <propval name='auto_enable' type='boolean' value='true' /> 1477c478bd9Sstevel@tonic-gate </property_group> 1487c478bd9Sstevel@tonic-gate 149eb1a3463STruong Nguyen <property_group name='firewall_context' type='com.sun,fw_definition'> 150eb1a3463STruong Nguyen <propval name='name' type='astring' value='nfsd' /> 151eb1a3463STruong Nguyen <propval name='ipf_method' type='astring' 152eb1a3463STruong Nguyen value='/lib/svc/method/nfs-server ipfilter' /> 153eb1a3463STruong Nguyen </property_group> 154eb1a3463STruong Nguyen 155eb1a3463STruong Nguyen <property_group name='firewall_config' type='com.sun,fw_configuration'> 156eb1a3463STruong Nguyen <propval name='policy' type='astring' value='use_global' /> 157*7ddce999SHans Rosenfeld <propval name='block_policy' type='astring' 158*7ddce999SHans Rosenfeld value='use_global' /> 159eb1a3463STruong Nguyen <propval name='apply_to' type='astring' value='' /> 160*7ddce999SHans Rosenfeld <propval name='apply_to_6' type='astring' value='' /> 161eb1a3463STruong Nguyen <propval name='exceptions' type='astring' value='' /> 162*7ddce999SHans Rosenfeld <propval name='exceptions_6' type='astring' value='' /> 163*7ddce999SHans Rosenfeld <propval name='target' type='astring' value='' /> 164*7ddce999SHans Rosenfeld <propval name='target_6' type='astring' value='' /> 165eb1a3463STruong Nguyen <propval name='value_authorization' type='astring' 166eb1a3463STruong Nguyen value='solaris.smf.value.firewall.config' /> 167eb1a3463STruong Nguyen </property_group> 168dd51520eSPavan Mettu - Oracle Corporation - Menlo Park United States <instance name='default' enabled='false'> 169dd51520eSPavan Mettu - Oracle Corporation - Menlo Park United States <property_group name='nfs-props' type='com.oracle.nfs,props'> 170dd51520eSPavan Mettu - Oracle Corporation - Menlo Park United States <propval name='device' type='astring' value=''/> 171dd51520eSPavan Mettu - Oracle Corporation - Menlo Park United States <propval name='listen_backlog' type='integer' value='32'/> 172dd51520eSPavan Mettu - Oracle Corporation - Menlo Park United States <propval name='max_connections' type='integer' value='-1'/> 173dd51520eSPavan Mettu - Oracle Corporation - Menlo Park United States <propval name='protocol' type='astring' value='ALL'/> 174dd51520eSPavan Mettu - Oracle Corporation - Menlo Park United States <propval name='server_delegation' type='astring' value='on'/> 175dd51520eSPavan Mettu - Oracle Corporation - Menlo Park United States <propval name='server_versmax' type='integer' value='4'/> 176dd51520eSPavan Mettu - Oracle Corporation - Menlo Park United States <propval name='server_versmin' type='integer' value='2'/> 177dd51520eSPavan Mettu - Oracle Corporation - Menlo Park United States <propval name='servers' type='integer' value='16'/> 178361f55a5SMarcel Telka <propval name='mountd_listen_backlog' type='integer' value='64'/> 179361f55a5SMarcel Telka <propval name='mountd_max_threads' type='integer' value='16'/> 180dd51520eSPavan Mettu - Oracle Corporation - Menlo Park United States </property_group> 181dd51520eSPavan Mettu - Oracle Corporation - Menlo Park United States </instance> 182eb1a3463STruong Nguyen 1837c478bd9Sstevel@tonic-gate <stability value='Stable' /> 1847c478bd9Sstevel@tonic-gate 1857c478bd9Sstevel@tonic-gate <template> 1867c478bd9Sstevel@tonic-gate <common_name> 1877c478bd9Sstevel@tonic-gate <loctext xml:lang='C'> 1887c478bd9Sstevel@tonic-gate NFS server 1897c478bd9Sstevel@tonic-gate </loctext> 1907c478bd9Sstevel@tonic-gate </common_name> 1917c478bd9Sstevel@tonic-gate <documentation> 1927c478bd9Sstevel@tonic-gate <manpage title='nfsd' section='1M' 1937c478bd9Sstevel@tonic-gate manpath='/usr/share/man' /> 1947c478bd9Sstevel@tonic-gate </documentation> 1957c478bd9Sstevel@tonic-gate </template> 1967c478bd9Sstevel@tonic-gate</service> 1977c478bd9Sstevel@tonic-gate 1987c478bd9Sstevel@tonic-gate</service_bundle> 199