diff mbox series

[PULL,10/12] tests/vm/freebsd: Reload the sshd configuration

Message ID 20240206104347.238825-11-thuth@redhat.com (mailing list archive)
State New, archived
Headers show
Series [PULL,01/12] hw/scsi/lsi53c895a: add missing decrement of reentrancy counter | expand

Commit Message

Thomas Huth Feb. 6, 2024, 10:43 a.m. UTC
From: Ilya Leoshkevich <iii@linux.ibm.com>

After console_sshd_config(), the SSH server needs to be nudged to pick
up the new configs. The scripts for the other BSD flavors already do
this with a reboot, but a simple reload is sufficient.

Reviewed-by: Thomas Huth <thuth@redhat.com>
Signed-off-by: Ilya Leoshkevich <iii@linux.ibm.com>
Message-ID: <20240206002344.12372-3-iii@linux.ibm.com>
Signed-off-by: Thomas Huth <thuth@redhat.com>
---
 tests/vm/freebsd | 1 +
 1 file changed, 1 insertion(+)
diff mbox series

Patch

diff --git a/tests/vm/freebsd b/tests/vm/freebsd
index b581bd17fb..1247f40a38 100755
--- a/tests/vm/freebsd
+++ b/tests/vm/freebsd
@@ -108,6 +108,7 @@  class FreeBSDVM(basevm.BaseVM):
         prompt = "root@freebsd:~ #"
         self.console_ssh_init(prompt, "root", self._config["root_pass"])
         self.console_sshd_config(prompt)
+        self.console_wait_send(prompt, "service sshd reload\n")
 
         # setup virtio-blk #1 (tarfile)
         self.console_wait(prompt)