commit 224b95e7778cbcbf5f52613ad5bacd40cf8da3f8 Author: Thomas Draebing Date: Wed Aug 12 15:30:12 2020 +0200 Register graceful shutdown for gc command Change-Id: Ib7fb8c3a20c0b7ae376bfffb4eee7f3ead5a4b9f diff --git a/java/com/google/gerrit/sshd/commands/GarbageCollectionCommand.java b/java/com/google/gerrit/sshd/commands/GarbageCollectionCommand.java index ecbb373..97737b0 100644 --- a/java/com/google/gerrit/sshd/commands/GarbageCollectionCommand.java +++ b/java/com/google/gerrit/sshd/commands/GarbageCollectionCommand.java @@ -62,6 +62,7 @@ public class GarbageCollectionCommand extends SshCommand { @Override public void run() throws Exception { + enableGracefulStop(); verifyCommandLine(); runGC(); }