Skip to content

Commit

Permalink
Merge pull request #1883 from bastelfreak/sles
Browse files Browse the repository at this point in the history
non-systemd SLES: Readd support for restarting sshd via `rcsshd`
  • Loading branch information
bastelfreak authored May 20, 2024
2 parents dbe14d5 + ea9a86a commit 7053494
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions lib/beaker/host/unix/exec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -284,6 +284,8 @@ def ssh_service_restart
exec(Beaker::Command.new("svcadm restart svc:/network/ssh:default"))
when /(free|open)bsd/
exec(Beaker::Command.new("sudo /etc/rc.d/sshd restart"))
when /opensuse|sles/
exec(Beaker::Command.new("/usr/sbin/rcsshd restart"))
else
exec(Beaker::Command.new("systemctl restart sshd.service"))
end
Expand Down

0 comments on commit 7053494

Please sign in to comment.