commit 0d535305cdac06ff3b71c6f329fb2ef873c63720 Author: Thomas Draebing Date: Wed Aug 12 15:59:09 2020 +0200 Register graceful shutdown for version command Change-Id: I0522561d9153f4963289bbc69fdb23b383ea0809 diff --git a/java/com/google/gerrit/sshd/commands/VersionCommand.java b/java/com/google/gerrit/sshd/commands/VersionCommand.java index 8fac979..f8771fb 100644 --- a/java/com/google/gerrit/sshd/commands/VersionCommand.java +++ b/java/com/google/gerrit/sshd/commands/VersionCommand.java @@ -25,6 +25,7 @@ final class VersionCommand extends SshCommand { @Override protected void run() throws Failure { + enableGracefulStop(); String v = Version.getVersion(); if (v == null) { throw new Failure(1, "fatal: version unavailable");