Do not "killall bitcoind" processes

Just kill the one we started.
This commit is contained in:
ghubstan 2020-07-16 17:05:32 -03:00
parent 4296d96d40
commit 7d664d9cfd
No known key found for this signature in database
GPG Key ID: E35592D6800A861E

View File

@ -88,7 +88,7 @@ public class BitcoinDaemon extends AbstractLinuxProcess implements LinuxProcess
if (!isAlive(pid))
throw new IllegalStateException("bitcoind already shut down");
if (new BashCommand("killall bitcoind").run().getExitStatus() != 0)
if (new BashCommand("kill -15 " + pid).run().getExitStatus() != 0)
throw new IllegalStateException("Could not shut down bitcoind; probably already stopped.");
MILLISECONDS.sleep(2000); // allow it time to shutdown