'service mysql status' not producing valid exit codes
Bug #1237021 reported by
Justice London
This bug affects 1 person
Affects | Status | Importance | Assigned to | Milestone | ||
---|---|---|---|---|---|---|
Percona XtraDB Cluster moved to https://jira.percona.com/projects/PXC | Status tracked in 5.6 | |||||
5.5 |
Fix Released
|
Undecided
|
Unassigned | |||
5.6 |
Fix Released
|
Undecided
|
Unassigned |
Bug Description
service mysql status
MySQL (Percona XtraDB Cluster) is not running [FAILED]
->
echo $?
0
This should produce a 1, 3, etc... basically any exit code but zero. Not doing so breaks Puppet and many other configuration management systems. For now I'll work around it.
To post a comment you must log in.
Yes, that seems to be a regression from a recent bug fix,:
=== modified file 'Percona- Server/ support- files/mysql. server. sh' Server/ support- files/mysql. server. sh 2013-09-30 10:12:43 +0000 Server/ support- files/mysql. server. sh 2013-10-08 19:40:45 +0000
check_running 1
--- Percona-
+++ Percona-
@@ -412,6 +412,7 @@
;;
'status')
+ exit $?
;;
'bootstrap-pxc')
# Bootstrap the Percona XtraDB Cluster, start the first node
should fix it though.