Print this page
| Split |
Close |
| Expand all |
| Collapse all |
--- /workspace/tf84964/oscds-6662001-6610950/webrev/usr/src/cmd/ha-services/gds-agents/zone/sczbt/start_sczbt.ksh-
+++ start_sczbt.ksh
1 1 #!/usr/bin/ksh
2 2 #
3 3 # CDDL HEADER START
4 4 #
5 5 # The contents of this file are subject to the terms of the
6 6 # Common Development and Distribution License (the License).
7 7 # You may not use this file except in compliance with the License.
8 8 #
9 9 # You can obtain a copy of the license at usr/src/CDDL.txt
10 10 # or http://www.opensolaris.org/os/licensing.
11 11 # See the License for the specific language governing permissions
12 12 # and limitations under the License.
13 13 #
|
↓ open down ↓ |
13 lines elided |
↑ open up ↑ |
14 14 # When distributing Covered Code, include this CDDL HEADER in each
15 15 # file and include the License file at usr/src/CDDL.txt.
16 16 # If applicable, add the following below this CDDL HEADER, with the
17 17 # fields enclosed by brackets [] replaced with your own identifying
18 18 # information: Portions Copyright [yyyy] [name of copyright owner]
19 19 #
20 20 # CDDL HEADER END
21 21 #
22 22
23 23 #
24 -# Copyright 2007 Sun Microsystems, Inc. All rights reserved.
24 +# Copyright 2008 Sun Microsystems, Inc. All rights reserved.
25 25 # Use is subject to license terms.
26 26 #
27 27 # ident "%Z%%M% %I% %E% SMI"
28 28 #
29 29
30 30 # starts the zone, the paramters are passed in options
31 31
32 32 MYNAME=`basename ${0}`
33 33 MYDIR=`dirname ${0}`
34 34
35 35 # needed for backwards compatibility
36 36 Zonebrand="native"
37 37
38 38 typeset opt
39 39
40 40 while getopts 'R:G:P:' opt
41 41 do
42 42 case "${opt}" in
43 43 R) RESOURCE=${OPTARG};;
44 44 G) RESOURCEGROUP=${OPTARG};;
45 45 P) PARDIR=${OPTARG};;
46 46 *) exit 1;;
47 47 esac
48 48 done
49 49
50 50 . ${MYDIR}/../etc/config # debugging flags
51 51 . ${MYDIR}/functions # agent specific functions
52 52 . ${MYDIR}/../../lib/functions # functions common for all the agents
53 53 . ${MYDIR}/../../lib/functions_common # functions common for all the zone components
54 54
55 55 debug_message "Method: ${MYNAME} - Begin"
|
↓ open down ↓ |
21 lines elided |
↑ open up ↑ |
56 56 ${SET_DEBUG}
57 57
58 58 # Checks the syntax of the options
59 59
60 60 if ! validate_options
61 61 then
62 62 debug_message "Method: ${MYNAME} - End (Exit 1)"
63 63 exit 1
64 64 fi
65 65
66 -rm ${LOGFILE} 2>/dev/null
66 +/bin/rm ${LOGFILE} 2>/dev/null
67 67
68 68 # checks the semantic of the options and the parameter file
69 69
70 70 if ! validate
71 71 then
72 72 debug_message "Method: ${MYNAME} - End (Exit 1)"
73 73 exit 1
74 74 fi
75 75
76 76 # source the zone boot specific parameter file
77 77
78 78 . ${PARFILE}
79 79
80 80 if start_sczbt
81 81 then
82 - log_message notice "start_command rc<${rc_start_command}>"
82 + debug_message "start_command rc<${rc_start_command}>"
83 83 else
84 84 log_message err "start_command rc<${rc_start_command}>"
85 85 fi
86 86
87 87 debug_message "Method: ${MYNAME} - End (Exit ${rc_start_command})"
88 88 exit ${rc_start_command}
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX