From a0165ba4faf2781b334b709abbddf5e1cf943daa Mon Sep 17 00:00:00 2001 From: BrainwreckedTech <3752022+BrainwreckedTech@users.noreply.github.com> Date: Mon, 14 Nov 2022 01:12:44 -0500 Subject: [PATCH] Make sshd restart more verbose --- sshdpw | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/sshdpw b/sshdpw index dc046f5..27113ae 100755 --- a/sshdpw +++ b/sshdpw @@ -35,9 +35,13 @@ for OPTION in PasswordAuthentication KbdInteractiveAuthentication ChallengeRespo done if command -v systemctl > /dev/null; then + printf 'Restarting SSH daemon via systemd...' systemctl restart sshd + echo 'done.' elif [ -x /etc/init.d/sshd ]; then + printf 'Restarting SSH daemon via SysV-compatible init...' /etc/init.d/sshd restart + echo 'done.' else echo "Restart SSH server to have changes take effect." fi