nfs-server revision 6185db853e024a486ff8837e6784dd290d866112
0N/A# The contents of this file are subject to the terms of the 0N/A# Common Development and Distribution License (the "License"). 2362N/A# You may not use this file except in compliance with the License. 0N/A# See the License for the specific language governing permissions 0N/A# and limitations under the License. 0N/A# When distributing Covered Code, include this CDDL HEADER in each 0N/A# If applicable, add the following below this CDDL HEADER, with the 0N/A# fields enclosed by brackets "[]" replaced with your own identifying 0N/A# information: Portions Copyright [yyyy] [name of copyright owner] 2362N/A# Copyright 2006 Sun Microsystems, Inc. All rights reserved. 0N/A# Use is subject to license terms. 0N/A#pragma ident "%Z%%M% %I% %E% SMI" 0N/A # The NFS server is not supported in a local zone 0N/A echo "The NFS server is not supported in a local zone" 0N/A # Share all file systems enabled for sharing. sharemgr understands 0N/A # regular shares and ZFS shares and will handle both. Technically, 0N/A # the shares would have been started long before getting here since 0N/A # nfsd has a dependency on them. 0N/A # restart stopped shares from the repository # Start up mountd and nfsd if anything is exported. # When the system comes up umask is not set; so set the mode now echo "No NFS filesystems are shared" # Unshare all shared file systems using NFS # Wait up to 10 seconds for nfslogd to gracefully handle SIGHUP # Kill nfslogd more forcefully if it did not shutdown during # Kill any processes left in service contract echo "Usage: $0 { start | stop | refresh }"