mirror of
https://github.com/etcd-io/etcd.git
synced 2024-09-27 06:25:44 +00:00
tools/etcd-agent: recycle etcd zombie when termination
This commit is contained in:
parent
3cffc910de
commit
4314b19a2e
@ -73,7 +73,7 @@ func (a *Agent) restart() error {
|
||||
// terminate stops the exiting etcd process the agent started
|
||||
// and removes the data dir.
|
||||
func (a *Agent) terminate() error {
|
||||
a.cmd.Process.Kill()
|
||||
a.stop()
|
||||
args := a.cmd.Args
|
||||
|
||||
datadir := path.Join(a.cmd.Path, "*.etcd")
|
||||
|
Loading…
x
Reference in New Issue
Block a user