nfs-server (1356:e021b5e4aa0e) nfs-server (1573:7338e65f2666)
1#!/sbin/sh
2#
3# CDDL HEADER START
4#
5# The contents of this file are subject to the terms of the
1#!/sbin/sh
2#
3# CDDL HEADER START
4#
5# The contents of this file are subject to the terms of the
6# Common Development and Distribution License, Version 1.0 only
7# (the "License"). You may not use this file except in compliance
8# with the License.
6# Common Development and Distribution License (the "License").
7# 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.

--- 7 unchanged lines hidden (view full) ---

24# Copyright 2006 Sun Microsystems, Inc. All rights reserved.
25# Use is subject to license terms.
26#
27#pragma ident "%Z%%M% %I% %E% SMI"
28
29# Start/stop processes required for server NFS
30
31. /lib/svc/share/smf_include.sh
8#
9# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
10# or http://www.opensolaris.org/os/licensing.
11# See the License for the specific language governing permissions
12# and limitations under the License.
13#
14# When distributing Covered Code, include this CDDL HEADER in each
15# file and include the License file at usr/src/OPENSOLARIS.LICENSE.

--- 7 unchanged lines hidden (view full) ---

23# Copyright 2006 Sun Microsystems, Inc. All rights reserved.
24# Use is subject to license terms.
25#
26#pragma ident "%Z%%M% %I% %E% SMI"
27
28# Start/stop processes required for server NFS
29
30. /lib/svc/share/smf_include.sh
32zone=${_INIT_ZONENAME:=`/sbin/zonename`}
31zone=`smf_zonename`
33
34case "$1" in
35'start')
36 # The NFS server is not supported in a local zone
32
33case "$1" in
34'start')
35 # The NFS server is not supported in a local zone
37 if [ $zone != "global" ] ; then
36 if smf_is_nonglobalzone; then
38 /usr/sbin/svcadm disable -t svc:/network/nfs/server
39 echo "The NFS server is not supported in a local zone"
40 sleep 5 &
41 exit $SMF_EXIT_OK
42 fi
43
44 # Share any ZFS filesystems marked for sharing. The environment
45 # variable prevents share(1M) from checking whether each filesystem

--- 100 unchanged lines hidden ---
37 /usr/sbin/svcadm disable -t svc:/network/nfs/server
38 echo "The NFS server is not supported in a local zone"
39 sleep 5 &
40 exit $SMF_EXIT_OK
41 fi
42
43 # Share any ZFS filesystems marked for sharing. The environment
44 # variable prevents share(1M) from checking whether each filesystem

--- 100 unchanged lines hidden ---