From 08f68c663483eb0cad663f891ee9fd725a57134e Mon Sep 17 00:00:00 2001 From: Jose Diaz-Gonzalez Date: Sun, 22 Sep 2024 21:07:26 -0400 Subject: [PATCH] fix: do not wait forever and use systemctl for interacting with services --- tests.mk | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/tests.mk b/tests.mk index 2bb3aebcc..f70e615b3 100644 --- a/tests.mk +++ b/tests.mk @@ -92,9 +92,11 @@ endif cat /usr/lib/systemd/system/ssh.socket cat /etc/ssh/sshd_config systemctl daemon-reload - service ssh restart - service ssh status - journalctl -u ssh -f -n 1000 + systemctl reload ssh + systemctl restart ssh + systemctl status ssh + sleep 2 + journalctl -u ssh -n 1000 endif @echo "-----> Installing SSH public key..."