Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
16 changes: 10 additions & 6 deletions bin/yugabyted
Original file line number Diff line number Diff line change
Expand Up @@ -3191,14 +3191,18 @@ class ControlScript(object):
os._exit(os.EX_OK)
self.set_signals(SIG_DFL)

for p in self.processes.values():
p.delete_pidfile()
self.script.delete_pidfile()

try:
for p in self.processes.values():
p.kill()

for p in self.processes.values():
p.wait_until_stop()

self.script.delete_pidfile()

# Kill process group instead of self.processes to ensure
# any spawned child processes are killed. Use SIGKILL because YugaWare
# requires KILL signal to terminate and nodes currently do not gracefully terminate.
# any spawned child processes are killed.
# This will terminate any processes that didn't respond to SIGTERM.
os.killpg(pgid, SIGKILL)
Output.log(
"{} may not have terminated properly... "
Expand Down