Nodes started by gradle task are not stopped when the gradle task exits.

Description

When I start for example the demo nodes for the node explorer with `./gradlew tools:explorer:runDemoNodes` and later terminate the gradle task with CTRL-C, the java processes of the nodes keep running.

This is counter-intuitive, I would have assumed that the processes nodes are terminated as well. It's problematic because the processes are not exactly light-weight.
This behaviour differs by OS, on Windows & Mac it's apparently not an issue.

I talked to , he agreed to my suggestion that adding a shutDownHook that terminates the Processes created by DriverDSLImplementation.startOutOfProcessNode might be a good idea.

Status

Assignee

Florian.Friemel@r3.com

Reporter

Florian.Friemel@r3.com

Labels

None

Priority

Low

Fix versions

Ported to...

None

Feature Team

Corda Core

Severity

Medium

Affected OS

Linux
Configure