88.2.8
by Ignacio Nin
Text changes in init scripts, XtraDB log message |
1 |
--- a/scripts/mysqld_multi.sh
|
2 |
+++ b/scripts/mysqld_multi.sh
|
|
3 |
@@ -233,10 +233,10 @@ sub report_mysqlds
|
|
4 |
{ |
|
5 |
my (@groups, $com, $i, @options, $pec); |
|
6 |
||
7 |
- print "Reporting MySQL servers\n";
|
|
8 |
+ print "Reporting MySQL (Percona Server) servers\n";
|
|
9 |
if (!$opt_no_log) |
|
10 |
{ |
|
11 |
- w2log("\nReporting MySQL servers","$opt_log",0,0);
|
|
12 |
+ w2log("\nReporting MySQL (Percona Server) servers","$opt_log",0,0);
|
|
13 |
} |
|
14 |
@groups = &find_groups($groupids); |
|
15 |
for ($i = 0; defined($groups[$i]); $i++) |
|
16 |
@@ -247,19 +247,19 @@ sub report_mysqlds
|
|
17 |
$pec = $? >> 8; |
|
18 |
if ($pec) |
|
19 |
{ |
|
20 |
- print "MySQL server from group: $groups[$i] is not running\n";
|
|
21 |
+ print "MySQL (Percona Server) from group: $groups[$i] is not running\n";
|
|
22 |
if (!$opt_no_log) |
|
23 |
{ |
|
24 |
- w2log("MySQL server from group: $groups[$i] is not running",
|
|
25 |
+ w2log("MySQL (Percona Server) from group: $groups[$i] is not running",
|
|
26 |
"$opt_log", 0, 0); |
|
27 |
} |
|
28 |
} |
|
29 |
else |
|
30 |
{ |
|
31 |
- print "MySQL server from group: $groups[$i] is running\n";
|
|
32 |
+ print "MySQL (Percona Server) from group: $groups[$i] is running\n";
|
|
33 |
if (!$opt_no_log) |
|
34 |
{ |
|
35 |
- w2log("MySQL server from group: $groups[$i] is running",
|
|
36 |
+ w2log("MySQL (Percona Server) from group: $groups[$i] is running",
|
|
37 |
"$opt_log", 0, 0); |
|
38 |
} |
|
39 |
} |
|
40 |
@@ -284,11 +284,11 @@ sub start_mysqlds()
|
|
41 |
||
42 |
if (!$opt_no_log) |
|
43 |
{ |
|
44 |
- w2log("\nStarting MySQL servers\n","$opt_log",0,0);
|
|
45 |
+ w2log("\nStarting MySQL (Percona Server)\n","$opt_log",0,0);
|
|
46 |
} |
|
47 |
else |
|
48 |
{ |
|
49 |
- print "\nStarting MySQL servers\n";
|
|
50 |
+ print "\nStarting MySQL (Percona Server)\n";
|
|
51 |
} |
|
52 |
@groups = &find_groups($groupids); |
|
53 |
for ($i = 0; defined($groups[$i]); $i++) |
|
54 |
@@ -359,7 +359,7 @@ sub start_mysqlds()
|
|
55 |
} |
|
56 |
if (!$i && !$opt_no_log) |
|
57 |
{ |
|
58 |
- w2log("No MySQL servers to be started (check your GNRs)",
|
|
59 |
+ w2log("No MySQL (Percona Server) servers to be started (check your GNRs)",
|
|
60 |
"$opt_log", 0, 0); |
|
61 |
} |
|
62 |
} |
|
63 |
@@ -374,11 +374,11 @@ sub stop_mysqlds()
|
|
64 |
||
65 |
if (!$opt_no_log) |
|
66 |
{ |
|
67 |
- w2log("\nStopping MySQL servers\n","$opt_log",0,0);
|
|
68 |
+ w2log("\nStopping MySQL (Percona Server) servers\n","$opt_log",0,0);
|
|
69 |
} |
|
70 |
else |
|
71 |
{ |
|
72 |
- print "\nStopping MySQL servers\n";
|
|
73 |
+ print "\nStopping MySQL (Percona Server) servers\n";
|
|
74 |
} |
|
75 |
@groups = &find_groups($groupids); |
|
76 |
for ($i = 0; defined($groups[$i]); $i++) |
|
77 |
@@ -391,7 +391,7 @@ sub stop_mysqlds()
|
|
78 |
} |
|
79 |
if (!$i && !$opt_no_log) |
|
80 |
{ |
|
81 |
- w2log("No MySQL servers to be stopped (check your GNRs)",
|
|
82 |
+ w2log("No MySQL (Percona Server) servers to be stopped (check your GNRs)",
|
|
83 |
"$opt_log", 0, 0); |
|
84 |
} |
|
85 |
} |
|
86 |
--- a/support-files/mysql.server.sh
|
|
87 |
+++ b/support-files/mysql.server.sh
|
|
88 |
@@ -2,7 +2,7 @@
|
|
89 |
# Copyright Abandoned 1996 TCX DataKonsult AB & Monty Program KB & Detron HB |
|
90 |
# This file is public domain and comes with NO WARRANTY of any kind |
|
91 |
||
92 |
-# MySQL daemon start/stop script.
|
|
93 |
+# MySQL (Percona Server) daemon start/stop script.
|
|
94 |
||
95 |
# Usually this is put in /etc/init.d (at least on machines SYSV R4 based |
|
96 |
# systems) and linked to /etc/rc3.d/S99mysql and /etc/rc0.d/K01mysql. |
|
97 |
@@ -21,8 +21,8 @@
|
|
98 |
# Required-Stop: $local_fs $network $remote_fs |
|
99 |
# Default-Start: 2 3 4 5 |
|
100 |
# Default-Stop: 0 1 6 |
|
101 |
-# Short-Description: start and stop MySQL
|
|
102 |
-# Description: MySQL is a very fast and reliable SQL database engine.
|
|
103 |
+# Short-Description: start and stop MySQL (Percona Server)
|
|
104 |
+# Description: Percona-Server is a SQL database engine with focus on high performance.
|
|
105 |
### END INIT INFO |
|
106 |
||
107 |
# If you install MySQL on some other places than @prefix@, then you |
|
108 |
@@ -275,7 +275,7 @@ case "$mode" in
|
|
109 |
# Safeguard (relative paths, core dumps..) |
|
110 |
cd $basedir |
|
111 |
||
112 |
- echo $echo_n "Starting MySQL"
|
|
113 |
+ echo $echo_n "Starting MySQL (Percona Server)"
|
|
114 |
if test -x $bindir/mysqld_safe |
|
115 |
then |
|
116 |
# Give extra arguments to mysqld with the my.cnf file. This script |
|
117 |
@@ -305,12 +305,12 @@ case "$mode" in
|
|
118 |
||
119 |
if (kill -0 $mysqld_pid 2>/dev/null) |
|
120 |
then |
|
121 |
- echo $echo_n "Shutting down MySQL"
|
|
122 |
+ echo $echo_n "Shutting down MySQL (Percona Server)"
|
|
123 |
kill $mysqld_pid |
|
124 |
# mysqld should remove the pid file when it exits, so wait for it. |
|
125 |
wait_for_pid removed "$mysqld_pid" "$mysqld_pid_file_path"; return_value=$? |
|
126 |
else |
|
127 |
- log_failure_msg "MySQL server process #$mysqld_pid is not running!"
|
|
128 |
+ log_failure_msg "MySQL (Percona Server) server process #$mysqld_pid is not running!"
|
|
129 |
rm "$mysqld_pid_file_path" |
|
130 |
fi |
|
131 |
||
132 |
@@ -321,7 +321,7 @@ case "$mode" in
|
|
133 |
fi |
|
134 |
exit $return_value |
|
135 |
else |
|
136 |
- log_failure_msg "MySQL server PID file could not be found!"
|
|
137 |
+ log_failure_msg "MySQL (Percona Server) PID file could not be found!"
|
|
138 |
fi |
|
139 |
;; |
|
140 |
||
141 |
@@ -339,10 +339,10 @@ case "$mode" in
|
|
142 |
'reload'|'force-reload') |
|
143 |
if test -s "$mysqld_pid_file_path" ; then |
|
144 |
read mysqld_pid < "$mysqld_pid_file_path" |
|
145 |
- kill -HUP $mysqld_pid && log_success_msg "Reloading service MySQL"
|
|
146 |
+ kill -HUP $mysqld_pid && log_success_msg "Reloading service MySQL (Percona Server)"
|
|
147 |
touch "$mysqld_pid_file_path" |
|
148 |
else |
|
149 |
- log_failure_msg "MySQL PID file could not be found!"
|
|
150 |
+ log_failure_msg "MySQL (Percona Server) PID file could not be found!"
|
|
151 |
exit 1 |
|
152 |
fi |
|
153 |
;; |
|
154 |
@@ -351,10 +351,10 @@ case "$mode" in
|
|
155 |
if test -s "$mysqld_pid_file_path" ; then |
|
156 |
read mysqld_pid < "$mysqld_pid_file_path" |
|
157 |
if kill -0 $mysqld_pid 2>/dev/null ; then |
|
158 |
- log_success_msg "MySQL running ($mysqld_pid)"
|
|
159 |
+ log_success_msg "MySQL (Percona Server) running ($mysqld_pid)"
|
|
160 |
exit 0 |
|
161 |
else |
|
162 |
- log_failure_msg "MySQL is not running, but PID file exists"
|
|
163 |
+ log_failure_msg "MySQL (Percona Server) is not running, but PID file exists"
|
|
164 |
exit 1 |
|
165 |
fi |
|
166 |
else |
|
167 |
@@ -362,13 +362,13 @@ case "$mode" in
|
|
168 |
mysqld_pid=`pidof $libexecdir/mysqld` |
|
169 |
if test -z $mysqld_pid ; then |
|
170 |
if test -f "$lock_file_path" ; then |
|
171 |
- log_failure_msg "MySQL is not running, but lock file ($lock_file_path) exists"
|
|
172 |
+ log_failure_msg "MySQL (Percona Server) is not running, but lock file ($lock_file_path) exists"
|
|
173 |
exit 2 |
|
174 |
fi |
|
175 |
- log_failure_msg "MySQL is not running"
|
|
176 |
+ log_failure_msg "MySQL (Percona Server) is not running"
|
|
177 |
exit 3 |
|
178 |
else |
|
179 |
- log_failure_msg "MySQL is running but PID file could not be found"
|
|
180 |
+ log_failure_msg "MySQL (Percona Server) is running but PID file could not be found"
|
|
181 |
exit 4 |
|
182 |
fi |
|
183 |
fi |
|
184 |
@@ -376,7 +376,7 @@ case "$mode" in
|
|
185 |
*) |
|
186 |
# usage |
|
187 |
basename=`basename "$0"` |
|
188 |
- echo "Usage: $basename {start|stop|restart|reload|force-reload|status} [ MySQL server options ]"
|
|
189 |
+ echo "Usage: $basename {start|stop|restart|reload|force-reload|status} [ MySQL (Percona Server) options ]"
|
|
190 |
exit 1 |
|
191 |
;; |
|
192 |
esac |