From ea9a86aa8446442f0ce1830e64c042f72b12fa2c Mon Sep 17 00:00:00 2001 From: Tim Meusel Date: Wed, 15 May 2024 17:31:39 +0200 Subject: [PATCH] non-systemd SLES: Readd support for restarting sshd via This is a followup of 3fb9a1bd857d21995d15d6cf876ce5c64fda0bb0 --- lib/beaker/host/unix/exec.rb | 2 ++ 1 file changed, 2 insertions(+) diff --git a/lib/beaker/host/unix/exec.rb b/lib/beaker/host/unix/exec.rb index 4dd481bff..08ea8d677 100644 --- a/lib/beaker/host/unix/exec.rb +++ b/lib/beaker/host/unix/exec.rb @@ -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