So I followed this youtube video on setting up RTL-433 service on a Ubuntu server. Problem is, it seems to keep failing after a while. Sometimes doing a systemctl start service doesn’t work and I will have to reboot the system and then it will work. It will work for a while and later in the day it will suddenly stop. Sometimes I can do a systemctl start, but sometimes not.

Anyone know how I can have this service constantly up and running, and restart if it fails?

  • falchy@sopuli.xyz
    link
    fedilink
    English
    arrow-up
    6
    ·
    edit-2
    2 years ago

    Still relatively beginner, but wouldn’t ‘journalctl -u nameofservice.service’ also give you in depth logs over a longer period of time?

    • redawl@sh.itjust.works
      link
      fedilink
      English
      arrow-up
      3
      ·
      2 years ago

      Adding to this, journalctl -fu service will jump to the bottom of the log and effectively tail -F the log so any new output will be appended to your terminal

      • falchy@sopuli.xyz
        link
        fedilink
        English
        arrow-up
        2
        ·
        2 years ago

        Well that’s way easier than my utilization of less or watch or tail that Ive been doing.

      • Nick@sh.itjust.works
        link
        fedilink
        English
        arrow-up
        1
        ·
        edit-2
        2 years ago

        I second journalctl -f -u SERVICE_NAME.service it’s great and just works well. The .service isn’t required, but it’s a good habit to get into since systemd also has mounts and timers.