1. 3
  1.  

  2. 2

    Has monit moved away from pid files yet? I wrote Inspeqtor because I wanted something that worked with upstart and systemd, not rc.d.

    1. 1

      hi Mike, big fan of your work here!

      I haven’t tried this, but apparently you can match on a string - https://serverfault.com/questions/270316/monit-check-process-without-pidfile/285596 - albeit with limitations to the first match.

      Forgive the dumb question, but what’s the relationship (or lack of relationship) between pid files and upstart/systemd.

      1. 3

        PID files are known to be a racy hack, part of legacy Sys-V/Unix. “Modern” (anything in the last decade) daemons should be following the “new-style” notes here:

        https://www.freedesktop.org/software/systemd/man/daemon.html

        Integrating daemons into the init system and the OS means you pick up a lot of nice functionality for free, e.g. log management and tooling, start on boot, restart policy, etc.