Skip to main content

check_running

Function check_running 

Source
pub fn check_running(pid_file: Option<String>) -> Option<u32>
Expand description

Check if a PID file exists and the process is still running

§Arguments

  • pid_file - Optional PID file path (defaults to runtime-appropriate location)

§Returns

Some(pid) if the process is running, None if not running or PID file doesn’t exist.