pub fn read_pid(settings_dir: &Path) -> Option<u32>
Read the stored PID, if the file exists and is valid.