Match etcd process name exactly

A process named, e.g., etcd-operator, should not match
This commit is contained in:
Andy Lindeman 2017-01-25 22:52:37 -05:00
parent 0ebedded7d
commit 79d283896d
No known key found for this signature in database
GPG Key ID: AB1CED47756930F7

View File

@ -28,8 +28,8 @@ kube::etcd::validate() {
}
# validate it is not running
if pgrep etcd >/dev/null 2>&1; then
kube::log::usage "etcd appears to already be running on this machine (`pgrep -l etcd`) (or its a zombie and you need to kill its parent)."
if pgrep -x etcd >/dev/null 2>&1; then
kube::log::usage "etcd appears to already be running on this machine (`pgrep -xl etcd`) (or its a zombie and you need to kill its parent)."
kube::log::usage "retry after you resolve this etcd error."
exit 1
fi