Return code incorrect when garbd is already running
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
MySQL patches by Codership |
Won't Fix
|
Medium
|
Yan Zhang | ||
Percona XtraDB Cluster moved to https://jira.percona.com/projects/PXC |
New
|
Undecided
|
Unassigned |
Bug Description
Context:
SysV init.d script: /etc/init.d/garb
Garbd is already running and started correctly.
Observed result:
service garb start
echo $?
0
Awaited result:
When garbd is already started, return code shouldn't return 0.
0 means success
If garbd is already running so trying to start garbd is expected to fail and return an non-zero return code.
Solution: return 3 instead of 0
--- garbd_origin 2014-04-15 16:48:20.115360380 +0200
+++ garb 2014-04-15 16:49:24.866360234 +0200
@@ -97,7 +97,7 @@
if [ -r $PIDFILE ]; then
- return 0
+ return 3
fi
[ -x $prog ] || return 5
Changed in codership-mysql: | |
status: | New → Confirmed |
assignee: | nobody → Yan Zhang (yan.zhang) |
importance: | Undecided → Medium |
Changed in codership-mysql: | |
status: | Confirmed → Won't Fix |
This is maybe a galera project bug.
I will post it in the galera project instead.