commit 492b1cfb5512e001078ff6a20b87675a7318316c Author: Thomas Draebing Date: Wed Aug 12 15:52:33 2020 +0200 Register graceful shutdown for reload config command Change-Id: I80163c71e67a671482975bab5c35705f659374af diff --git a/java/com/google/gerrit/sshd/commands/ReloadConfig.java b/java/com/google/gerrit/sshd/commands/ReloadConfig.java index cbe3c57..eeb48bb 100644 --- a/java/com/google/gerrit/sshd/commands/ReloadConfig.java +++ b/java/com/google/gerrit/sshd/commands/ReloadConfig.java @@ -38,6 +38,7 @@ public class ReloadConfig extends SshCommand { @Override protected void run() throws Failure { + enableGracefulStop(); Multimap updates = gerritServerConfigReloader.reloadConfig(); if (updates.isEmpty()) { stdout.println("No config entries updated!");