again better

This commit is contained in:
John Lancaster
2026-01-04 10:15:30 -06:00
parent 0b1e8f5c08
commit 44174c8c6b

View File

@@ -103,7 +103,8 @@ EOF
restart_sshd() {
if systemctl is-active --quiet sshd; then
local sshd_pid=$(systemctl show --property MainPID --value sshd)
kill -SIGHUP $sshd_pid
echo "Restarting sshd service..."
systemctl restart sshd
echo -e "$GREEN_CHECK Restarted sshd service on PID: $sshd_pid"
else
echo -e "$YELLOW_BANG Not running sshd service"