Is there a simple GUI application that will monitor running processes periodically and alert the user when a process is not running? The ones I have found are far too complex (eg Monit). I am sure this is trivial to achieve with a script, but I’d rather use a GUI.

A use case would look like this: every 60 minutes check if Syncthing is running and display a notification if it’s not. In my experience, Syncthing is very reliable when it launches successfully but there may be an issue with conflicting versions that may prevent it from running at boot. Syncthing has no way to alert the GUI user when something goes wrong and you may find after you left home that your laptop hasn’t synced. Checking manually is a headache, prone to errors and goes against the idea of fit and forget.

(Debian Trixie with KDE Plasma)

  • sun_is_ra@sh.itjust.works
    link
    fedilink
    English
    arrow-up
    4
    ·
    6 hours ago

    It doesn’t work for me (using plasma). Also it seems to be using DBUS which I am not sure if it will work within a cron job.

    A simple solution that works for me is something like this:

    echo hello > /dev/pts/0

    • utopiah@lemmy.ml
      link
      fedilink
      arrow-up
      1
      ·
      2 hours ago

      I imagine dbus-monitor should work with cron but probably if starting once DBUS is actually running (so not sure @reboot would be sufficient)

    • Vector@lemmy.world
      link
      fedilink
      English
      arrow-up
      1
      ·
      6 hours ago

      Good call on DBUS. Setting XDG_RUNTIME_DIR seems to be enough to fix it up, I’ll update my other response.