See documentation at https://vtjnash.github.io/Pidfile.jl/. This package is now available (Julia v1.9+) with using FileWatching.Pidfile from the Julia stdlib!