summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChristian Breunig <christian@breunig.cc>2024-06-21 22:14:45 +0200
committerMergify <37929162+mergify[bot]@users.noreply.github.com>2024-06-22 15:26:15 +0000
commitb925e59451aca9af2cc495cacd1d6e30a76b8c22 (patch)
treea73f9cb66531d57bae0c2673341910972d545f0f
parent5d46c64a3041504a81e630790a88738300b232c1 (diff)
downloadvyos-1x-b925e59451aca9af2cc495cacd1d6e30a76b8c22.tar.gz
vyos-1x-b925e59451aca9af2cc495cacd1d6e30a76b8c22.zip
op-mode: T6503: "restart ssh" command not working
Commit e5af1f090 ("ssh: T6192: allow binding to multiple VRF instances") switched the systemd unit file from ssh.service to ssh@*.service, this change was not reflected in the "restart ssh" op-mode command. (cherry picked from commit 059eb3a137a75d502632174cc028b81f49152782)
-rw-r--r--op-mode-definitions/restart-ssh.xml.in2
1 files changed, 1 insertions, 1 deletions
diff --git a/op-mode-definitions/restart-ssh.xml.in b/op-mode-definitions/restart-ssh.xml.in
index 6504cc18a..543cafc24 100644
--- a/op-mode-definitions/restart-ssh.xml.in
+++ b/op-mode-definitions/restart-ssh.xml.in
@@ -6,7 +6,7 @@
<properties>
<help>Restart SSH service</help>
</properties>
- <command>if cli-shell-api existsActive service ssh; then sudo systemctl restart ssh.service; else echo "Service SSH not configured"; fi</command>
+ <command>if cli-shell-api existsActive service ssh; then sudo systemctl restart "ssh@*.service"; else echo "Service SSH not configured"; fi</command>
</node>
</children>
</node>