1 --- a/scripts/mysqld_multi.sh
2 +++ b/scripts/mysqld_multi.sh
5 my (@groups, $com, $i, @options, $pec);
7 - print "Reporting MySQL servers\n";
8 + print "Reporting MySQL (Percona Server) servers\n";
11 - w2log("\nReporting MySQL servers","$opt_log",0,0);
12 + w2log("\nReporting MySQL (Percona Server) servers","$opt_log",0,0);
14 @groups = &find_groups($groupids);
15 for ($i = 0; defined($groups[$i]); $i++)
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";
24 - w2log("MySQL server from group: $groups[$i] is not running",
25 + w2log("MySQL (Percona Server) from group: $groups[$i] is not running",
31 - print "MySQL server from group: $groups[$i] is running\n";
32 + print "MySQL (Percona Server) from group: $groups[$i] is running\n";
35 - w2log("MySQL server from group: $groups[$i] is running",
36 + w2log("MySQL (Percona Server) from group: $groups[$i] is running",
44 - w2log("\nStarting MySQL servers\n","$opt_log",0,0);
45 + w2log("\nStarting MySQL (Percona Server)\n","$opt_log",0,0);
49 - print "\nStarting MySQL servers\n";
50 + print "\nStarting MySQL (Percona Server)\n";
52 @groups = &find_groups($groupids);
53 for ($i = 0; defined($groups[$i]); $i++)
56 if (!$i && !$opt_no_log)
58 - w2log("No MySQL servers to be started (check your GNRs)",
59 + w2log("No MySQL (Percona Server) servers to be started (check your GNRs)",
67 - w2log("\nStopping MySQL servers\n","$opt_log",0,0);
68 + w2log("\nStopping MySQL (Percona Server) servers\n","$opt_log",0,0);
72 - print "\nStopping MySQL servers\n";
73 + print "\nStopping MySQL (Percona Server) servers\n";
75 @groups = &find_groups($groupids);
76 for ($i = 0; defined($groups[$i]); $i++)
79 if (!$i && !$opt_no_log)
81 - w2log("No MySQL servers to be stopped (check your GNRs)",
82 + w2log("No MySQL (Percona Server) servers to be stopped (check your GNRs)",
86 --- a/support-files/mysql.server.sh
87 +++ b/support-files/mysql.server.sh
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
92 -# MySQL daemon start/stop script.
93 +# MySQL (Percona Server) daemon start/stop script.
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.
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.
107 # If you install MySQL on some other places than @prefix@, then you
109 # Safeguard (relative paths, core dumps..)
112 - echo $echo_n "Starting MySQL"
113 + echo $echo_n "Starting MySQL (Percona Server)"
114 if test -x $bindir/mysqld_safe
116 # Give extra arguments to mysqld with the my.cnf file. This script
117 @@ -305,12 +305,12 @@
119 if (kill -0 $mysqld_pid 2>/dev/null)
121 - echo $echo_n "Shutting down MySQL"
122 + echo $echo_n "Shutting down MySQL (Percona Server)"
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=$?
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"
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!"
141 @@ -339,10 +339,10 @@
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"
149 - log_failure_msg "MySQL PID file could not be found!"
150 + log_failure_msg "MySQL (Percona Server) PID file could not be found!"
154 @@ -351,10 +351,10 @@
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)"
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"
167 @@ -362,13 +362,13 @@
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"
175 - log_failure_msg "MySQL is not running"
176 + log_failure_msg "MySQL (Percona Server) is not running"
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"
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 ]"