diff options
author | Christian Breunig <christian@breunig.cc> | 2024-06-21 22:14:45 +0200 |
---|---|---|
committer | Mergify <37929162+mergify[bot]@users.noreply.github.com> | 2024-06-22 15:26:28 +0000 |
commit | 08b8d5a4b5c6a0dc4281ef7d86824c65cc2bffd1 (patch) | |
tree | 4f5d62abb9216a327d5e8ed631c1e6c86f15adcb | |
parent | 1fc32e342dc053e54e658e3a0d72bdc340ddb9d6 (diff) | |
download | vyos-1x-08b8d5a4b5c6a0dc4281ef7d86824c65cc2bffd1.tar.gz vyos-1x-08b8d5a4b5c6a0dc4281ef7d86824c65cc2bffd1.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.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> |