Check if a pidfile is running in bash Posted by james on 14 November 2023, 1:17 pm test -f /run/icinga2/icinga2.pid && test -d /proc/$(< /run/icinga2/icinga2.pid)