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 7eb1a3463STruong Nguyen The contents of this file are subject to the terms of the 8eb1a3463STruong Nguyen Common Development and Distribution License (the "License"). 9eb1a3463STruong Nguyen You may not use this file except in compliance with the License. 107c478bd9Sstevel@tonic-gate 11eb1a3463STruong Nguyen You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE 12eb1a3463STruong Nguyen or http://www.opensolaris.org/os/licensing. 13eb1a3463STruong Nguyen See the License for the specific language governing permissions 14eb1a3463STruong Nguyen and limitations under the License. 157c478bd9Sstevel@tonic-gate 16eb1a3463STruong Nguyen When distributing Covered Code, include this CDDL HEADER in each 17eb1a3463STruong Nguyen file and include the License file at usr/src/OPENSOLARIS.LICENSE. 18eb1a3463STruong Nguyen If applicable, add the following below this CDDL HEADER, with the 19eb1a3463STruong Nguyen fields enclosed by brackets "[]" replaced with your own identifying 20eb1a3463STruong Nguyen 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. 25201f5ebaSSebastien Roy Copyright (c) 2012 by Delphix. All rights reserved. 267ddce999SHans Rosenfeld Copyright 2014 Nexenta Systems, Inc. All rights reserved 277ddce999SHans Rosenfeld Copyright 2016 Hans Rosenfeld <rosenfeld@grumpf.hope-2000.org> 282c3ccf74SGordon Ross Copyright (c) 2012, 2014 by Delphix. All rights reserved. 2935a075c3SToomas Soome Copyright 2022 RackTop Systems. 306185db85Sdougm 317c478bd9Sstevel@tonic-gate NOTE: This service manifest is not editable; its contents will 327c478bd9Sstevel@tonic-gate be overwritten by package or patch operations, including 337c478bd9Sstevel@tonic-gate operating system upgrade. Make customizations in a different 347c478bd9Sstevel@tonic-gate file. 357c478bd9Sstevel@tonic-gate 367c478bd9Sstevel@tonic-gate Note: if this service is modified to consist of anything other 377c478bd9Sstevel@tonic-gate than a single instance named 'default', you must make changes to 387c478bd9Sstevel@tonic-gate $SRC/head/rpcsvc/daemon_utils.h and libnsl:open_daemon_lock(). 397c478bd9Sstevel@tonic-gate--> 407c478bd9Sstevel@tonic-gate 417c478bd9Sstevel@tonic-gate<service_bundle type='manifest' name='SUNWnfssr:nfs-server'> 427c478bd9Sstevel@tonic-gate 437c478bd9Sstevel@tonic-gate<service 447c478bd9Sstevel@tonic-gate name='network/nfs/server' 457c478bd9Sstevel@tonic-gate type='service' 46201f5ebaSSebastien Roy version='2'> 477c478bd9Sstevel@tonic-gate 487c478bd9Sstevel@tonic-gate <dependency name='network' 497c478bd9Sstevel@tonic-gate grouping='require_any' 507c478bd9Sstevel@tonic-gate restart_on='error' 517c478bd9Sstevel@tonic-gate type='service'> 527c478bd9Sstevel@tonic-gate <service_fmri value='svc:/milestone/network' /> 537c478bd9Sstevel@tonic-gate </dependency> 547c478bd9Sstevel@tonic-gate 557c478bd9Sstevel@tonic-gate <dependency name='nlockmgr' 567c478bd9Sstevel@tonic-gate grouping='require_all' 577c478bd9Sstevel@tonic-gate restart_on='error' 587c478bd9Sstevel@tonic-gate type='service'> 597c478bd9Sstevel@tonic-gate <service_fmri value='svc:/network/nfs/nlockmgr' /> 607c478bd9Sstevel@tonic-gate </dependency> 617c478bd9Sstevel@tonic-gate 627c478bd9Sstevel@tonic-gate <dependency name='mapid' 637c478bd9Sstevel@tonic-gate grouping='optional_all' 647c478bd9Sstevel@tonic-gate restart_on='error' 657c478bd9Sstevel@tonic-gate type='service'> 667c478bd9Sstevel@tonic-gate <service_fmri value='svc:/network/nfs/mapid' /> 677c478bd9Sstevel@tonic-gate </dependency> 687c478bd9Sstevel@tonic-gate 697c478bd9Sstevel@tonic-gate <dependency name='rpcbind' 707c478bd9Sstevel@tonic-gate grouping='require_all' 717c478bd9Sstevel@tonic-gate restart_on='restart' 727c478bd9Sstevel@tonic-gate type='service'> 737c478bd9Sstevel@tonic-gate <service_fmri value='svc:/network/rpc/bind' /> 747c478bd9Sstevel@tonic-gate </dependency> 757c478bd9Sstevel@tonic-gate 767c478bd9Sstevel@tonic-gate <dependency name='keyserv' 777c478bd9Sstevel@tonic-gate grouping='optional_all' 787c478bd9Sstevel@tonic-gate restart_on='none' 797c478bd9Sstevel@tonic-gate type='service'> 807c478bd9Sstevel@tonic-gate <service_fmri value='svc:/network/rpc/keyserv' /> 817c478bd9Sstevel@tonic-gate </dependency> 827c478bd9Sstevel@tonic-gate 837c478bd9Sstevel@tonic-gate <dependency name='gss' 847c478bd9Sstevel@tonic-gate grouping='optional_all' 857c478bd9Sstevel@tonic-gate restart_on='none' 867c478bd9Sstevel@tonic-gate type='service'> 877c478bd9Sstevel@tonic-gate <service_fmri value='svc:/network/rpc/gss' /> 887c478bd9Sstevel@tonic-gate </dependency> 897c478bd9Sstevel@tonic-gate 906185db85Sdougm <dependency name='share-group' 916185db85Sdougm grouping='optional_all' 926185db85Sdougm restart_on='none' 936185db85Sdougm type='service'> 946185db85Sdougm <service_fmri value='svc:/network/shares/group' /> 956185db85Sdougm </dependency> 966185db85Sdougm 972f172c55SRobert Thurlow <dependency name='reparse' 982f172c55SRobert Thurlow grouping='optional_all' 992f172c55SRobert Thurlow restart_on='none' 1002f172c55SRobert Thurlow type='service'> 1012f172c55SRobert Thurlow <service_fmri value='svc:/system/filesystem/reparse' /> 1022f172c55SRobert Thurlow </dependency> 1032f172c55SRobert Thurlow 1047c478bd9Sstevel@tonic-gate <!-- Must have all local filesystems mounted before we share them --> 1057c478bd9Sstevel@tonic-gate <dependency name='filesystem-local' 1067c478bd9Sstevel@tonic-gate grouping='require_all' 1077c478bd9Sstevel@tonic-gate restart_on='error' 1087c478bd9Sstevel@tonic-gate type='service'> 1099f9c12cdSEvan Layton <service_fmri value='svc:/system/filesystem/local' /> 1107c478bd9Sstevel@tonic-gate </dependency> 1117c478bd9Sstevel@tonic-gate 1127c478bd9Sstevel@tonic-gate <dependent 1137c478bd9Sstevel@tonic-gate name='nfs-server_multi-user-server' 1147c478bd9Sstevel@tonic-gate grouping='optional_all' 1157c478bd9Sstevel@tonic-gate restart_on='none'> 1167c478bd9Sstevel@tonic-gate <service_fmri value='svc:/milestone/multi-user-server' /> 1177c478bd9Sstevel@tonic-gate </dependent> 1187c478bd9Sstevel@tonic-gate 1197c478bd9Sstevel@tonic-gate <!-- 1207c478bd9Sstevel@tonic-gate The shareall done as part of the nfs-server method may take a 1217c478bd9Sstevel@tonic-gate long time, as the contents of dfstab can be arbitrarily large. 1223fd3a04aSthurlow Set the timeout appropriately for both 'start' and 'refresh'. 1237c478bd9Sstevel@tonic-gate --> 1247c478bd9Sstevel@tonic-gate <exec_method 1257c478bd9Sstevel@tonic-gate type='method' 1267c478bd9Sstevel@tonic-gate name='start' 1277c478bd9Sstevel@tonic-gate exec='/lib/svc/method/nfs-server %m' 1287c478bd9Sstevel@tonic-gate timeout_seconds='3600' /> 1297c478bd9Sstevel@tonic-gate 1303fd3a04aSthurlow <exec_method 1313fd3a04aSthurlow type='method' 1323fd3a04aSthurlow name='refresh' 1333fd3a04aSthurlow exec='/lib/svc/method/nfs-server %m' 1343fd3a04aSthurlow timeout_seconds='3600' /> 1353fd3a04aSthurlow 1367c478bd9Sstevel@tonic-gate <!-- 1377c478bd9Sstevel@tonic-gate The stop method runs unshareall as well as up to a 10 second 1387c478bd9Sstevel@tonic-gate sleep to do graceful versus forceful shutdown of daemons. Set 1397c478bd9Sstevel@tonic-gate the timeout appropriately. 1407c478bd9Sstevel@tonic-gate --> 1417c478bd9Sstevel@tonic-gate <exec_method 1427c478bd9Sstevel@tonic-gate type='method' 1437c478bd9Sstevel@tonic-gate name='stop' 1447c478bd9Sstevel@tonic-gate exec='/lib/svc/method/nfs-server %m %{restarter/contract}' 1457c478bd9Sstevel@tonic-gate timeout_seconds='3600' /> 1467c478bd9Sstevel@tonic-gate 1477c478bd9Sstevel@tonic-gate <property_group name='application' type='framework'> 1487c478bd9Sstevel@tonic-gate <stability value='Evolving' /> 1497c478bd9Sstevel@tonic-gate <propval name='auto_enable' type='boolean' value='true' /> 1507c478bd9Sstevel@tonic-gate </property_group> 1517c478bd9Sstevel@tonic-gate 152eb1a3463STruong Nguyen <property_group name='firewall_context' type='com.sun,fw_definition'> 153eb1a3463STruong Nguyen <propval name='name' type='astring' value='nfsd' /> 154eb1a3463STruong Nguyen <propval name='ipf_method' type='astring' 155eb1a3463STruong Nguyen value='/lib/svc/method/nfs-server ipfilter' /> 156eb1a3463STruong Nguyen </property_group> 1572c3ccf74SGordon Ross 158eb1a3463STruong Nguyen <property_group name='firewall_config' type='com.sun,fw_configuration'> 159eb1a3463STruong Nguyen <propval name='policy' type='astring' value='use_global' /> 1607ddce999SHans Rosenfeld <propval name='block_policy' type='astring' 1617ddce999SHans Rosenfeld value='use_global' /> 162eb1a3463STruong Nguyen <propval name='apply_to' type='astring' value='' /> 1637ddce999SHans Rosenfeld <propval name='apply_to_6' type='astring' value='' /> 164eb1a3463STruong Nguyen <propval name='exceptions' type='astring' value='' /> 1657ddce999SHans Rosenfeld <propval name='exceptions_6' type='astring' value='' /> 1667ddce999SHans Rosenfeld <propval name='target' type='astring' value='' /> 1677ddce999SHans Rosenfeld <propval name='target_6' type='astring' value='' /> 168eb1a3463STruong Nguyen <propval name='value_authorization' type='astring' 169eb1a3463STruong Nguyen value='solaris.smf.value.firewall.config' /> 170eb1a3463STruong Nguyen </property_group> 171dd51520eSPavan Mettu - Oracle Corporation - Menlo Park United States <instance name='default' enabled='false'> 172dd51520eSPavan Mettu - Oracle Corporation - Menlo Park United States <property_group name='nfs-props' type='com.oracle.nfs,props'> 173dd51520eSPavan Mettu - Oracle Corporation - Menlo Park United States <propval name='device' type='astring' value=''/> 174dd51520eSPavan Mettu - Oracle Corporation - Menlo Park United States <propval name='listen_backlog' type='integer' value='32'/> 175dd51520eSPavan Mettu - Oracle Corporation - Menlo Park United States <propval name='max_connections' type='integer' value='-1'/> 176dd51520eSPavan Mettu - Oracle Corporation - Menlo Park United States <propval name='protocol' type='astring' value='ALL'/> 177dd51520eSPavan Mettu - Oracle Corporation - Menlo Park United States <propval name='server_delegation' type='astring' value='on'/> 178*86147f89SToomas Soome <propval name='server_versmax' type='astring' value='4'/> 179*86147f89SToomas Soome <propval name='server_versmin' type='astring' value='2'/> 1809f9c12cdSEvan Layton <propval name='servers' type='integer' value='256'/> 181361f55a5SMarcel Telka <propval name='mountd_listen_backlog' type='integer' value='64'/> 182361f55a5SMarcel Telka <propval name='mountd_max_threads' type='integer' value='16'/> 1832c3ccf74SGordon Ross <propval name='mountd_port' type='integer' value='0'/> 18435a075c3SToomas Soome <propval name='mountd_remote_dump' type='boolean' value='false'/> 185dd51520eSPavan Mettu - Oracle Corporation - Menlo Park United States </property_group> 186dd51520eSPavan Mettu - Oracle Corporation - Menlo Park United States </instance> 187eb1a3463STruong Nguyen 1887c478bd9Sstevel@tonic-gate <stability value='Stable' /> 1897c478bd9Sstevel@tonic-gate 1907c478bd9Sstevel@tonic-gate <template> 1917c478bd9Sstevel@tonic-gate <common_name> 1927c478bd9Sstevel@tonic-gate <loctext xml:lang='C'> 1937c478bd9Sstevel@tonic-gate NFS server 1947c478bd9Sstevel@tonic-gate </loctext> 1957c478bd9Sstevel@tonic-gate </common_name> 1967c478bd9Sstevel@tonic-gate <documentation> 197bbf21555SRichard Lowe <manpage title='nfsd' section='8' 1987c478bd9Sstevel@tonic-gate manpath='/usr/share/man' /> 1997c478bd9Sstevel@tonic-gate </documentation> 2007c478bd9Sstevel@tonic-gate </template> 2017c478bd9Sstevel@tonic-gate</service> 2027c478bd9Sstevel@tonic-gate 2037c478bd9Sstevel@tonic-gate</service_bundle> 204