net-svc (0:68f95e015346) net-svc (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.
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#
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.
16# If applicable, add the following below this CDDL HEADER, with the
17# fields enclosed by brackets "[]" replaced with your own identifying
18# information: Portions Copyright [yyyy] [name of copyright owner]
19#
20# CDDL HEADER END
21#
22#
24# Copyright 2005 Sun Microsystems, Inc. All rights reserved.
23# Copyright 2006 Sun Microsystems, Inc. All rights reserved.
25# Use is subject to license terms.
26#
27#ident "%Z%%M% %I% %E% SMI"
28
29#
30# This is third phase of TCP/IP startup/configuration. This script
31# runs after the NIS/NIS+ startup script. We run things here that may
32# depend on NIS/NIS+ maps.
33#
34
24# Use is subject to license terms.
25#
26#ident "%Z%%M% %I% %E% SMI"
27
28#
29# This is third phase of TCP/IP startup/configuration. This script
30# runs after the NIS/NIS+ startup script. We run things here that may
31# depend on NIS/NIS+ maps.
32#
33
34. /lib/svc/share/smf_include.sh
35
35case "$1" in
36'start')
37 #
38 # In a zone we need this service to be up, but all of the work
39 # it tries to do is irrelevant (and will actually lead to the service
40 # failing if we try to do it), so just bail out.
41 #
36case "$1" in
37'start')
38 #
39 # In a zone we need this service to be up, but all of the work
40 # it tries to do is irrelevant (and will actually lead to the service
41 # failing if we try to do it), so just bail out.
42 #
42 if [ `/sbin/zonename` != "global" ]; then
43 exit 0
44 fi
43 smf_is_globalzone || exit 0
45 ;; # Fall through -- rest of script is the initialization code
46
47'stop')
48 exit 0
49 ;;
50
51*)
52 echo "Usage: $0 { start | stop }"
53 exit 1
54 ;;
55esac
56
44 ;; # Fall through -- rest of script is the initialization code
45
46'stop')
47 exit 0
48 ;;
49
50*)
51 echo "Usage: $0 { start | stop }"
52 exit 1
53 ;;
54esac
55
57. /lib/svc/share/smf_include.sh
58
59# If boot variables are not set, set variables we use
60[ -z "$_INIT_UTS_NODENAME" ] && _INIT_UTS_NODENAME=`/usr/bin/uname -n`
61
62#
63# wait_nis
64# Wait up to 5 seconds for ypbind to obtain a binding.
65#

--- 275 unchanged lines hidden ---
56
57# If boot variables are not set, set variables we use
58[ -z "$_INIT_UTS_NODENAME" ] && _INIT_UTS_NODENAME=`/usr/bin/uname -n`
59
60#
61# wait_nis
62# Wait up to 5 seconds for ypbind to obtain a binding.
63#

--- 275 unchanged lines hidden ---