author | Petr Nyc <Petr.Nyc@Oracle.COM> |
Tue, 08 Sep 2015 10:40:03 -0700 | |
branch | s11u3-sru |
changeset 4842 | 3661acf9f226 |
parent 2890 | 47c675945a45 |
permissions | -rw-r--r-- |
444
a2a87847a213
7068640 Move MySQL 5.1 from SFW to Userland
Sunanda Menon <Sunanda.Menon@Sun.COM>
parents:
diff
changeset
|
1 |
#!/sbin/sh |
a2a87847a213
7068640 Move MySQL 5.1 from SFW to Userland
Sunanda Menon <Sunanda.Menon@Sun.COM>
parents:
diff
changeset
|
2 |
# |
a2a87847a213
7068640 Move MySQL 5.1 from SFW to Userland
Sunanda Menon <Sunanda.Menon@Sun.COM>
parents:
diff
changeset
|
3 |
# CDDL HEADER START |
a2a87847a213
7068640 Move MySQL 5.1 from SFW to Userland
Sunanda Menon <Sunanda.Menon@Sun.COM>
parents:
diff
changeset
|
4 |
# |
a2a87847a213
7068640 Move MySQL 5.1 from SFW to Userland
Sunanda Menon <Sunanda.Menon@Sun.COM>
parents:
diff
changeset
|
5 |
# The contents of this file are subject to the terms of the |
a2a87847a213
7068640 Move MySQL 5.1 from SFW to Userland
Sunanda Menon <Sunanda.Menon@Sun.COM>
parents:
diff
changeset
|
6 |
# Common Development and Distribution License (the "License"). |
a2a87847a213
7068640 Move MySQL 5.1 from SFW to Userland
Sunanda Menon <Sunanda.Menon@Sun.COM>
parents:
diff
changeset
|
7 |
# You may not use this file except in compliance with the License. |
a2a87847a213
7068640 Move MySQL 5.1 from SFW to Userland
Sunanda Menon <Sunanda.Menon@Sun.COM>
parents:
diff
changeset
|
8 |
# |
a2a87847a213
7068640 Move MySQL 5.1 from SFW to Userland
Sunanda Menon <Sunanda.Menon@Sun.COM>
parents:
diff
changeset
|
9 |
# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE |
a2a87847a213
7068640 Move MySQL 5.1 from SFW to Userland
Sunanda Menon <Sunanda.Menon@Sun.COM>
parents:
diff
changeset
|
10 |
# or http://www.opensolaris.org/os/licensing. |
a2a87847a213
7068640 Move MySQL 5.1 from SFW to Userland
Sunanda Menon <Sunanda.Menon@Sun.COM>
parents:
diff
changeset
|
11 |
# See the License for the specific language governing permissions |
a2a87847a213
7068640 Move MySQL 5.1 from SFW to Userland
Sunanda Menon <Sunanda.Menon@Sun.COM>
parents:
diff
changeset
|
12 |
# and limitations under the License. |
a2a87847a213
7068640 Move MySQL 5.1 from SFW to Userland
Sunanda Menon <Sunanda.Menon@Sun.COM>
parents:
diff
changeset
|
13 |
# |
a2a87847a213
7068640 Move MySQL 5.1 from SFW to Userland
Sunanda Menon <Sunanda.Menon@Sun.COM>
parents:
diff
changeset
|
14 |
# When distributing Covered Code, include this CDDL HEADER in each |
a2a87847a213
7068640 Move MySQL 5.1 from SFW to Userland
Sunanda Menon <Sunanda.Menon@Sun.COM>
parents:
diff
changeset
|
15 |
# file and include the License file at usr/src/OPENSOLARIS.LICENSE. |
a2a87847a213
7068640 Move MySQL 5.1 from SFW to Userland
Sunanda Menon <Sunanda.Menon@Sun.COM>
parents:
diff
changeset
|
16 |
# If applicable, add the following below this CDDL HEADER, with the |
a2a87847a213
7068640 Move MySQL 5.1 from SFW to Userland
Sunanda Menon <Sunanda.Menon@Sun.COM>
parents:
diff
changeset
|
17 |
# fields enclosed by brackets "[]" replaced with your own identifying |
a2a87847a213
7068640 Move MySQL 5.1 from SFW to Userland
Sunanda Menon <Sunanda.Menon@Sun.COM>
parents:
diff
changeset
|
18 |
# information: Portions Copyright [yyyy] [name of copyright owner] |
a2a87847a213
7068640 Move MySQL 5.1 from SFW to Userland
Sunanda Menon <Sunanda.Menon@Sun.COM>
parents:
diff
changeset
|
19 |
# |
a2a87847a213
7068640 Move MySQL 5.1 from SFW to Userland
Sunanda Menon <Sunanda.Menon@Sun.COM>
parents:
diff
changeset
|
20 |
# CDDL HEADER END |
a2a87847a213
7068640 Move MySQL 5.1 from SFW to Userland
Sunanda Menon <Sunanda.Menon@Sun.COM>
parents:
diff
changeset
|
21 |
# |
2890
47c675945a45
PSARC 2013/333 Update MySQL to 5.5; EOF MySQL 5.1
Laasya Moduludu <laasya.moduludu@oracle.com>
parents:
444
diff
changeset
|
22 |
# Copyright (c) 2011, 2014, Oracle and/or its affiliates. All rights reserved. |
444
a2a87847a213
7068640 Move MySQL 5.1 from SFW to Userland
Sunanda Menon <Sunanda.Menon@Sun.COM>
parents:
diff
changeset
|
23 |
# |
a2a87847a213
7068640 Move MySQL 5.1 from SFW to Userland
Sunanda Menon <Sunanda.Menon@Sun.COM>
parents:
diff
changeset
|
24 |
|
a2a87847a213
7068640 Move MySQL 5.1 from SFW to Userland
Sunanda Menon <Sunanda.Menon@Sun.COM>
parents:
diff
changeset
|
25 |
. /lib/svc/share/smf_include.sh |
a2a87847a213
7068640 Move MySQL 5.1 from SFW to Userland
Sunanda Menon <Sunanda.Menon@Sun.COM>
parents:
diff
changeset
|
26 |
|
a2a87847a213
7068640 Move MySQL 5.1 from SFW to Userland
Sunanda Menon <Sunanda.Menon@Sun.COM>
parents:
diff
changeset
|
27 |
# SMF_FMRI is the name of the target service. This allows multiple instances |
a2a87847a213
7068640 Move MySQL 5.1 from SFW to Userland
Sunanda Menon <Sunanda.Menon@Sun.COM>
parents:
diff
changeset
|
28 |
# to use the same script. |
a2a87847a213
7068640 Move MySQL 5.1 from SFW to Userland
Sunanda Menon <Sunanda.Menon@Sun.COM>
parents:
diff
changeset
|
29 |
|
2890
47c675945a45
PSARC 2013/333 Update MySQL to 5.5; EOF MySQL 5.1
Laasya Moduludu <laasya.moduludu@oracle.com>
parents:
444
diff
changeset
|
30 |
if [ -z $SMF_FMRI ]; then |
47c675945a45
PSARC 2013/333 Update MySQL to 5.5; EOF MySQL 5.1
Laasya Moduludu <laasya.moduludu@oracle.com>
parents:
444
diff
changeset
|
31 |
echo "SMF framework variables are not initialized." |
47c675945a45
PSARC 2013/333 Update MySQL to 5.5; EOF MySQL 5.1
Laasya Moduludu <laasya.moduludu@oracle.com>
parents:
444
diff
changeset
|
32 |
exit $SMF_EXIT_ERR |
47c675945a45
PSARC 2013/333 Update MySQL to 5.5; EOF MySQL 5.1
Laasya Moduludu <laasya.moduludu@oracle.com>
parents:
444
diff
changeset
|
33 |
fi |
47c675945a45
PSARC 2013/333 Update MySQL to 5.5; EOF MySQL 5.1
Laasya Moduludu <laasya.moduludu@oracle.com>
parents:
444
diff
changeset
|
34 |
|
444
a2a87847a213
7068640 Move MySQL 5.1 from SFW to Userland
Sunanda Menon <Sunanda.Menon@Sun.COM>
parents:
diff
changeset
|
35 |
getproparg() { |
a2a87847a213
7068640 Move MySQL 5.1 from SFW to Userland
Sunanda Menon <Sunanda.Menon@Sun.COM>
parents:
diff
changeset
|
36 |
val=`svcprop -p $1 $SMF_FMRI` |
a2a87847a213
7068640 Move MySQL 5.1 from SFW to Userland
Sunanda Menon <Sunanda.Menon@Sun.COM>
parents:
diff
changeset
|
37 |
[ -n "$val" ] && echo $val |
a2a87847a213
7068640 Move MySQL 5.1 from SFW to Userland
Sunanda Menon <Sunanda.Menon@Sun.COM>
parents:
diff
changeset
|
38 |
} |
a2a87847a213
7068640 Move MySQL 5.1 from SFW to Userland
Sunanda Menon <Sunanda.Menon@Sun.COM>
parents:
diff
changeset
|
39 |
|
2890
47c675945a45
PSARC 2013/333 Update MySQL to 5.5; EOF MySQL 5.1
Laasya Moduludu <laasya.moduludu@oracle.com>
parents:
444
diff
changeset
|
40 |
MYSQLCNF=`getproparg mysql/cnf` |
444
a2a87847a213
7068640 Move MySQL 5.1 from SFW to Userland
Sunanda Menon <Sunanda.Menon@Sun.COM>
parents:
diff
changeset
|
41 |
MYSQLBIN=`getproparg mysql/bin` |
a2a87847a213
7068640 Move MySQL 5.1 from SFW to Userland
Sunanda Menon <Sunanda.Menon@Sun.COM>
parents:
diff
changeset
|
42 |
MYSQLDATA=`getproparg mysql/data` |
a2a87847a213
7068640 Move MySQL 5.1 from SFW to Userland
Sunanda Menon <Sunanda.Menon@Sun.COM>
parents:
diff
changeset
|
43 |
PIDFILE=${MYSQLDATA}/`/usr/bin/uname -n`.pid |
a2a87847a213
7068640 Move MySQL 5.1 from SFW to Userland
Sunanda Menon <Sunanda.Menon@Sun.COM>
parents:
diff
changeset
|
44 |
|
a2a87847a213
7068640 Move MySQL 5.1 from SFW to Userland
Sunanda Menon <Sunanda.Menon@Sun.COM>
parents:
diff
changeset
|
45 |
|
2890
47c675945a45
PSARC 2013/333 Update MySQL to 5.5; EOF MySQL 5.1
Laasya Moduludu <laasya.moduludu@oracle.com>
parents:
444
diff
changeset
|
46 |
if [ -z ${MYSQLCNF} ]; then |
47c675945a45
PSARC 2013/333 Update MySQL to 5.5; EOF MySQL 5.1
Laasya Moduludu <laasya.moduludu@oracle.com>
parents:
444
diff
changeset
|
47 |
echo "mysql/cnf property not set" |
47c675945a45
PSARC 2013/333 Update MySQL to 5.5; EOF MySQL 5.1
Laasya Moduludu <laasya.moduludu@oracle.com>
parents:
444
diff
changeset
|
48 |
exit $SMF_EXIT_ERR_CONFIG |
47c675945a45
PSARC 2013/333 Update MySQL to 5.5; EOF MySQL 5.1
Laasya Moduludu <laasya.moduludu@oracle.com>
parents:
444
diff
changeset
|
49 |
fi |
47c675945a45
PSARC 2013/333 Update MySQL to 5.5; EOF MySQL 5.1
Laasya Moduludu <laasya.moduludu@oracle.com>
parents:
444
diff
changeset
|
50 |
|
47c675945a45
PSARC 2013/333 Update MySQL to 5.5; EOF MySQL 5.1
Laasya Moduludu <laasya.moduludu@oracle.com>
parents:
444
diff
changeset
|
51 |
if [ -z ${MYSQLBIN} ]; then |
47c675945a45
PSARC 2013/333 Update MySQL to 5.5; EOF MySQL 5.1
Laasya Moduludu <laasya.moduludu@oracle.com>
parents:
444
diff
changeset
|
52 |
echo "mysql/bin property not set" |
47c675945a45
PSARC 2013/333 Update MySQL to 5.5; EOF MySQL 5.1
Laasya Moduludu <laasya.moduludu@oracle.com>
parents:
444
diff
changeset
|
53 |
exit $SMF_EXIT_ERR_CONFIG |
444
a2a87847a213
7068640 Move MySQL 5.1 from SFW to Userland
Sunanda Menon <Sunanda.Menon@Sun.COM>
parents:
diff
changeset
|
54 |
fi |
a2a87847a213
7068640 Move MySQL 5.1 from SFW to Userland
Sunanda Menon <Sunanda.Menon@Sun.COM>
parents:
diff
changeset
|
55 |
|
a2a87847a213
7068640 Move MySQL 5.1 from SFW to Userland
Sunanda Menon <Sunanda.Menon@Sun.COM>
parents:
diff
changeset
|
56 |
if [ -z ${MYSQLDATA} ]; then |
a2a87847a213
7068640 Move MySQL 5.1 from SFW to Userland
Sunanda Menon <Sunanda.Menon@Sun.COM>
parents:
diff
changeset
|
57 |
echo "mysql/data property not set" |
a2a87847a213
7068640 Move MySQL 5.1 from SFW to Userland
Sunanda Menon <Sunanda.Menon@Sun.COM>
parents:
diff
changeset
|
58 |
exit $SMF_EXIT_ERR_CONFIG |
a2a87847a213
7068640 Move MySQL 5.1 from SFW to Userland
Sunanda Menon <Sunanda.Menon@Sun.COM>
parents:
diff
changeset
|
59 |
fi |
a2a87847a213
7068640 Move MySQL 5.1 from SFW to Userland
Sunanda Menon <Sunanda.Menon@Sun.COM>
parents:
diff
changeset
|
60 |
|
a2a87847a213
7068640 Move MySQL 5.1 from SFW to Userland
Sunanda Menon <Sunanda.Menon@Sun.COM>
parents:
diff
changeset
|
61 |
if [ ! -d ${MYSQLDATA} ]; then |
a2a87847a213
7068640 Move MySQL 5.1 from SFW to Userland
Sunanda Menon <Sunanda.Menon@Sun.COM>
parents:
diff
changeset
|
62 |
echo "mysql/data directory ${MYSQLDATA} is not a valid MySQL data directory" |
a2a87847a213
7068640 Move MySQL 5.1 from SFW to Userland
Sunanda Menon <Sunanda.Menon@Sun.COM>
parents:
diff
changeset
|
63 |
exit $SMF_EXIT_ERR_CONFIG |
a2a87847a213
7068640 Move MySQL 5.1 from SFW to Userland
Sunanda Menon <Sunanda.Menon@Sun.COM>
parents:
diff
changeset
|
64 |
fi |
a2a87847a213
7068640 Move MySQL 5.1 from SFW to Userland
Sunanda Menon <Sunanda.Menon@Sun.COM>
parents:
diff
changeset
|
65 |
|
a2a87847a213
7068640 Move MySQL 5.1 from SFW to Userland
Sunanda Menon <Sunanda.Menon@Sun.COM>
parents:
diff
changeset
|
66 |
if [ ! -d ${MYSQLDATA}/mysql ]; then |
2890
47c675945a45
PSARC 2013/333 Update MySQL to 5.5; EOF MySQL 5.1
Laasya Moduludu <laasya.moduludu@oracle.com>
parents:
444
diff
changeset
|
67 |
echo ${MYSQLBIN}/mysql_install_db --user=mysql --datadir=${MYSQLDATA} |
444
a2a87847a213
7068640 Move MySQL 5.1 from SFW to Userland
Sunanda Menon <Sunanda.Menon@Sun.COM>
parents:
diff
changeset
|
68 |
${MYSQLBIN}/mysql_install_db --user=mysql --datadir=${MYSQLDATA} |
a2a87847a213
7068640 Move MySQL 5.1 from SFW to Userland
Sunanda Menon <Sunanda.Menon@Sun.COM>
parents:
diff
changeset
|
69 |
fi |
a2a87847a213
7068640 Move MySQL 5.1 from SFW to Userland
Sunanda Menon <Sunanda.Menon@Sun.COM>
parents:
diff
changeset
|
70 |
|
2890
47c675945a45
PSARC 2013/333 Update MySQL to 5.5; EOF MySQL 5.1
Laasya Moduludu <laasya.moduludu@oracle.com>
parents:
444
diff
changeset
|
71 |
# refresh method for this service is not defined because mysqld by itself |
47c675945a45
PSARC 2013/333 Update MySQL to 5.5; EOF MySQL 5.1
Laasya Moduludu <laasya.moduludu@oracle.com>
parents:
444
diff
changeset
|
72 |
# cannot accept a HUP signal to reload the configuration file my.cnf |
444
a2a87847a213
7068640 Move MySQL 5.1 from SFW to Userland
Sunanda Menon <Sunanda.Menon@Sun.COM>
parents:
diff
changeset
|
73 |
|
a2a87847a213
7068640 Move MySQL 5.1 from SFW to Userland
Sunanda Menon <Sunanda.Menon@Sun.COM>
parents:
diff
changeset
|
74 |
mysql_start() { |
a2a87847a213
7068640 Move MySQL 5.1 from SFW to Userland
Sunanda Menon <Sunanda.Menon@Sun.COM>
parents:
diff
changeset
|
75 |
MYSQLDVAL=`getproparg mysql/enable_64bit mysql:version_51` |
a2a87847a213
7068640 Move MySQL 5.1 from SFW to Userland
Sunanda Menon <Sunanda.Menon@Sun.COM>
parents:
diff
changeset
|
76 |
if [ "$MYSQLDVAL" != "" ] ; then |
a2a87847a213
7068640 Move MySQL 5.1 from SFW to Userland
Sunanda Menon <Sunanda.Menon@Sun.COM>
parents:
diff
changeset
|
77 |
case "$MYSQLDVAL" in |
a2a87847a213
7068640 Move MySQL 5.1 from SFW to Userland
Sunanda Menon <Sunanda.Menon@Sun.COM>
parents:
diff
changeset
|
78 |
true|1) |
a2a87847a213
7068640 Move MySQL 5.1 from SFW to Userland
Sunanda Menon <Sunanda.Menon@Sun.COM>
parents:
diff
changeset
|
79 |
#Check if the system architecture supports 64-bit applications |
a2a87847a213
7068640 Move MySQL 5.1 from SFW to Userland
Sunanda Menon <Sunanda.Menon@Sun.COM>
parents:
diff
changeset
|
80 |
PLATFORM=`isainfo -b` |
a2a87847a213
7068640 Move MySQL 5.1 from SFW to Userland
Sunanda Menon <Sunanda.Menon@Sun.COM>
parents:
diff
changeset
|
81 |
if [ "${PLATFORM}" != "64" ]; then |
a2a87847a213
7068640 Move MySQL 5.1 from SFW to Userland
Sunanda Menon <Sunanda.Menon@Sun.COM>
parents:
diff
changeset
|
82 |
echo "This system is not capable of supporting 64-bit applications." |
a2a87847a213
7068640 Move MySQL 5.1 from SFW to Userland
Sunanda Menon <Sunanda.Menon@Sun.COM>
parents:
diff
changeset
|
83 |
echo "Set the \"enable_64bit\" property value to \"false\" to start the 32-bit server." |
a2a87847a213
7068640 Move MySQL 5.1 from SFW to Userland
Sunanda Menon <Sunanda.Menon@Sun.COM>
parents:
diff
changeset
|
84 |
exit $SMF_EXIT_ERR_CONFIG |
a2a87847a213
7068640 Move MySQL 5.1 from SFW to Userland
Sunanda Menon <Sunanda.Menon@Sun.COM>
parents:
diff
changeset
|
85 |
else |
2890
47c675945a45
PSARC 2013/333 Update MySQL to 5.5; EOF MySQL 5.1
Laasya Moduludu <laasya.moduludu@oracle.com>
parents:
444
diff
changeset
|
86 |
echo ${MYSQLBIN}/64/mysqld_safe --defaults-file=${MYSQLCNF} --user=mysql --datadir=${MYSQLDATA} --pid-file=${PIDFILE} |
47c675945a45
PSARC 2013/333 Update MySQL to 5.5; EOF MySQL 5.1
Laasya Moduludu <laasya.moduludu@oracle.com>
parents:
444
diff
changeset
|
87 |
${MYSQLBIN}/64/mysqld_safe --defaults-file=${MYSQLCNF} --user=mysql --datadir=${MYSQLDATA} --pid-file=${PIDFILE} > /dev/null & |
444
a2a87847a213
7068640 Move MySQL 5.1 from SFW to Userland
Sunanda Menon <Sunanda.Menon@Sun.COM>
parents:
diff
changeset
|
88 |
fi |
a2a87847a213
7068640 Move MySQL 5.1 from SFW to Userland
Sunanda Menon <Sunanda.Menon@Sun.COM>
parents:
diff
changeset
|
89 |
;; |
a2a87847a213
7068640 Move MySQL 5.1 from SFW to Userland
Sunanda Menon <Sunanda.Menon@Sun.COM>
parents:
diff
changeset
|
90 |
false|0) |
2890
47c675945a45
PSARC 2013/333 Update MySQL to 5.5; EOF MySQL 5.1
Laasya Moduludu <laasya.moduludu@oracle.com>
parents:
444
diff
changeset
|
91 |
echo ${MYSQLBIN}/mysqld_safe --defaults-file=${MYSQLCNF} --user=mysql --datadir=${MYSQLDATA} --pid-file=${PIDFILE} |
47c675945a45
PSARC 2013/333 Update MySQL to 5.5; EOF MySQL 5.1
Laasya Moduludu <laasya.moduludu@oracle.com>
parents:
444
diff
changeset
|
92 |
${MYSQLBIN}/mysqld_safe --defaults-file=${MYSQLCNF} --user=mysql --datadir=${MYSQLDATA} --pid-file=${PIDFILE} > /dev/null & |
444
a2a87847a213
7068640 Move MySQL 5.1 from SFW to Userland
Sunanda Menon <Sunanda.Menon@Sun.COM>
parents:
diff
changeset
|
93 |
|
a2a87847a213
7068640 Move MySQL 5.1 from SFW to Userland
Sunanda Menon <Sunanda.Menon@Sun.COM>
parents:
diff
changeset
|
94 |
;; |
a2a87847a213
7068640 Move MySQL 5.1 from SFW to Userland
Sunanda Menon <Sunanda.Menon@Sun.COM>
parents:
diff
changeset
|
95 |
esac |
a2a87847a213
7068640 Move MySQL 5.1 from SFW to Userland
Sunanda Menon <Sunanda.Menon@Sun.COM>
parents:
diff
changeset
|
96 |
fi |
a2a87847a213
7068640 Move MySQL 5.1 from SFW to Userland
Sunanda Menon <Sunanda.Menon@Sun.COM>
parents:
diff
changeset
|
97 |
|
a2a87847a213
7068640 Move MySQL 5.1 from SFW to Userland
Sunanda Menon <Sunanda.Menon@Sun.COM>
parents:
diff
changeset
|
98 |
} |
a2a87847a213
7068640 Move MySQL 5.1 from SFW to Userland
Sunanda Menon <Sunanda.Menon@Sun.COM>
parents:
diff
changeset
|
99 |
|
a2a87847a213
7068640 Move MySQL 5.1 from SFW to Userland
Sunanda Menon <Sunanda.Menon@Sun.COM>
parents:
diff
changeset
|
100 |
|
a2a87847a213
7068640 Move MySQL 5.1 from SFW to Userland
Sunanda Menon <Sunanda.Menon@Sun.COM>
parents:
diff
changeset
|
101 |
mysql_stop() { |
a2a87847a213
7068640 Move MySQL 5.1 from SFW to Userland
Sunanda Menon <Sunanda.Menon@Sun.COM>
parents:
diff
changeset
|
102 |
if [ -f ${PIDFILE} ]; then |
2890
47c675945a45
PSARC 2013/333 Update MySQL to 5.5; EOF MySQL 5.1
Laasya Moduludu <laasya.moduludu@oracle.com>
parents:
444
diff
changeset
|
103 |
smf_kill_contract $1 KILL 1 30 |
444
a2a87847a213
7068640 Move MySQL 5.1 from SFW to Userland
Sunanda Menon <Sunanda.Menon@Sun.COM>
parents:
diff
changeset
|
104 |
fi |
a2a87847a213
7068640 Move MySQL 5.1 from SFW to Userland
Sunanda Menon <Sunanda.Menon@Sun.COM>
parents:
diff
changeset
|
105 |
} |
a2a87847a213
7068640 Move MySQL 5.1 from SFW to Userland
Sunanda Menon <Sunanda.Menon@Sun.COM>
parents:
diff
changeset
|
106 |
|
a2a87847a213
7068640 Move MySQL 5.1 from SFW to Userland
Sunanda Menon <Sunanda.Menon@Sun.COM>
parents:
diff
changeset
|
107 |
case "$1" in |
a2a87847a213
7068640 Move MySQL 5.1 from SFW to Userland
Sunanda Menon <Sunanda.Menon@Sun.COM>
parents:
diff
changeset
|
108 |
'start') |
a2a87847a213
7068640 Move MySQL 5.1 from SFW to Userland
Sunanda Menon <Sunanda.Menon@Sun.COM>
parents:
diff
changeset
|
109 |
mysql_start |
a2a87847a213
7068640 Move MySQL 5.1 from SFW to Userland
Sunanda Menon <Sunanda.Menon@Sun.COM>
parents:
diff
changeset
|
110 |
;; |
a2a87847a213
7068640 Move MySQL 5.1 from SFW to Userland
Sunanda Menon <Sunanda.Menon@Sun.COM>
parents:
diff
changeset
|
111 |
|
a2a87847a213
7068640 Move MySQL 5.1 from SFW to Userland
Sunanda Menon <Sunanda.Menon@Sun.COM>
parents:
diff
changeset
|
112 |
'stop') |
2890
47c675945a45
PSARC 2013/333 Update MySQL to 5.5; EOF MySQL 5.1
Laasya Moduludu <laasya.moduludu@oracle.com>
parents:
444
diff
changeset
|
113 |
mysql_stop $2 |
444
a2a87847a213
7068640 Move MySQL 5.1 from SFW to Userland
Sunanda Menon <Sunanda.Menon@Sun.COM>
parents:
diff
changeset
|
114 |
;; |
a2a87847a213
7068640 Move MySQL 5.1 from SFW to Userland
Sunanda Menon <Sunanda.Menon@Sun.COM>
parents:
diff
changeset
|
115 |
|
a2a87847a213
7068640 Move MySQL 5.1 from SFW to Userland
Sunanda Menon <Sunanda.Menon@Sun.COM>
parents:
diff
changeset
|
116 |
|
a2a87847a213
7068640 Move MySQL 5.1 from SFW to Userland
Sunanda Menon <Sunanda.Menon@Sun.COM>
parents:
diff
changeset
|
117 |
*) |
a2a87847a213
7068640 Move MySQL 5.1 from SFW to Userland
Sunanda Menon <Sunanda.Menon@Sun.COM>
parents:
diff
changeset
|
118 |
echo "Usage: $0 {start|stop}" |
a2a87847a213
7068640 Move MySQL 5.1 from SFW to Userland
Sunanda Menon <Sunanda.Menon@Sun.COM>
parents:
diff
changeset
|
119 |
exit 1 |
a2a87847a213
7068640 Move MySQL 5.1 from SFW to Userland
Sunanda Menon <Sunanda.Menon@Sun.COM>
parents:
diff
changeset
|
120 |
;; |
a2a87847a213
7068640 Move MySQL 5.1 from SFW to Userland
Sunanda Menon <Sunanda.Menon@Sun.COM>
parents:
diff
changeset
|
121 |
|
a2a87847a213
7068640 Move MySQL 5.1 from SFW to Userland
Sunanda Menon <Sunanda.Menon@Sun.COM>
parents:
diff
changeset
|
122 |
esac |
a2a87847a213
7068640 Move MySQL 5.1 from SFW to Userland
Sunanda Menon <Sunanda.Menon@Sun.COM>
parents:
diff
changeset
|
123 |
exit $SMF_EXIT_OK |