News for hackers. Stuff that matters.
Re:I help seniors with technology issues. A regular came in ... by dharmab on Monday October 24, 2022 @01:33PM (#33319704)
Here's an excerpt from my cheat sheet:

    # Output all logs since boot
    journalctl
    # Follow all logs in real time
    journalctl -f
    # Output logs for a given systemd unit
    journalctl -u $unit
    # Combine follow and unit flags to follow logs for a given systemd unit
    # Easy to remember: You are saying F*** U to a broken piece of software
    journalctl -fu $unit
    # Output kernel logs
    journalctl -k
    # Follow kernel logs
    journalctl -fk

    # Tip: Use -b flag to see logs from previous boot cycles

    # Learn more, including advanced filtering and formatting
    man journalctl
You can also add that configtest command as an ExecStartPre to the unit, and it will run that before starting nginx and optionally fail early if it finds an error.
Re:I help seniors with technology issues. A regular came in ... by __turbobrew__ on Monday October 24, 2022 @06:19PM (#33323389)
You forgot:

    # Easy to remember: You are saying F**K because your kernel is broken
    journalctl -fk
Re:I help seniors with technology issues. A regular came in ... by Rediscover on Tuesday October 25, 2022 @06:14AM (#33328521)
Thank You