commit 401bebf2d966a49bacd1404242ac2a1b205b1e82 Author: Thomas Draebing Date: Wed Aug 12 15:48:20 2020 +0200 Register graceful shutdown for plugin admin commands Change-Id: I9ed4cd92b6bbd43a335721b1f9f22b62ddf8a070 diff --git a/java/com/google/gerrit/sshd/commands/PluginAdminSshCommand.java b/java/com/google/gerrit/sshd/commands/PluginAdminSshCommand.java index 7e32615..086081c 100644 --- a/java/com/google/gerrit/sshd/commands/PluginAdminSshCommand.java +++ b/java/com/google/gerrit/sshd/commands/PluginAdminSshCommand.java @@ -28,6 +28,7 @@ public abstract class PluginAdminSshCommand extends SshCommand { @Override protected final void run() throws UnloggedFailure { + enableGracefulStop(); if (!loader.isRemoteAdminEnabled()) { throw die("remote plugin administration is disabled"); }