summaryrefslogtreecommitdiff
path: root/op-mode-definitions
diff options
context:
space:
mode:
authorChristian Breunig <christian@breunig.cc>2024-06-22 20:03:27 +0200
committerGitHub <noreply@github.com>2024-06-22 20:03:27 +0200
commit150b79439e55c19db019ed07b8af7371c9639983 (patch)
treebda34148aa9356df4dccc099011b25b05d1558db /op-mode-definitions
parent726c3270bb83b13ea7d3265dbb65c710225d0e39 (diff)
parentb925e59451aca9af2cc495cacd1d6e30a76b8c22 (diff)
downloadvyos-1x-150b79439e55c19db019ed07b8af7371c9639983.tar.gz
vyos-1x-150b79439e55c19db019ed07b8af7371c9639983.zip
Merge pull request #3704 from vyos/mergify/bp/sagitta/pr-3702
op-mode: T6503: "restart ssh" command not working (backport #3702)
Diffstat (limited to 'op-mode-definitions')
-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>