Skip to content

Commit

Permalink
op-mode: T6503: "restart ssh" command not working
Browse files Browse the repository at this point in the history
Commit e5af1f0 ("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.
  • Loading branch information
c-po committed Jun 21, 2024
1 parent 569b29e commit 059eb3a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion op-mode-definitions/restart-ssh.xml.in
Original file line number Diff line number Diff line change
Expand Up @@ -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>
Expand Down

0 comments on commit 059eb3a

Please sign in to comment.