diff options
author | Christian Breunig <christian@breunig.cc> | 2024-06-21 22:14:45 +0200 |
---|---|---|
committer | Christian Breunig <christian@breunig.cc> | 2024-06-21 20:48:38 +0000 |
commit | 059eb3a137a75d502632174cc028b81f49152782 (patch) | |
tree | 43722ff312c777344dad28445aeadd9429d91357 /op-mode-definitions/restart-ssh.xml.in | |
parent | 569b29eafda7073f95784786cf34387df53f2b35 (diff) | |
download | vyos-1x-059eb3a137a75d502632174cc028b81f49152782.tar.gz vyos-1x-059eb3a137a75d502632174cc028b81f49152782.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.
Diffstat (limited to 'op-mode-definitions/restart-ssh.xml.in')
-rw-r--r-- | op-mode-definitions/restart-ssh.xml.in | 2 |
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> |