summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChristian Breunig <christian@breunig.cc>2024-06-22 19:17:30 +0200
committerGitHub <noreply@github.com>2024-06-22 19:17:30 +0200
commit544e606af3fb92d3a49d4b9ee6fd1910b457132f (patch)
treeb802b36292c5667bffd5acccd536ad0882baee21
parent537706e0c640bc48e90af6636b1063da8101a8c4 (diff)
parent08b8d5a4b5c6a0dc4281ef7d86824c65cc2bffd1 (diff)
downloadvyos-1x-544e606af3fb92d3a49d4b9ee6fd1910b457132f.tar.gz
vyos-1x-544e606af3fb92d3a49d4b9ee6fd1910b457132f.zip
Merge pull request #3705 from vyos/mergify/bp/circinus/pr-3702
op-mode: T6503: "restart ssh" command not working (backport #3702)
-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>