Empty pid_files or pid <= 1 are not valid.
Only check pids that are > 1.
Report pid_file before actions.