10ea727f53
With -tt allocating a remote PTY, systemctl and journalctl would sometimes open a pager (less/more) even with --no-pager, leaving the script blocked until the user hits q or Ctrl-C. Force PAGER=cat and SYSTEMD_PAGER=cat inside every remote sudo call and inside the status_block journalctl command. Add --output=cat to journalctl too as belt-and-suspenders. Status output is also piped through | head -3 / | head -20 to guarantee a finite output even if the pager or color escape handling misbehaves.