Skip to main content

run

Function run 

Source
pub async fn run(
    socket_path: PathBuf,
    agents_dirs: &[PathBuf],
    pid_file: PathBuf,
) -> Result<(), String>
Expand description

Runs the core logic of the app.

This serves the SSH agent socket on socket_path and looks for sshd sockets in agents_dirs.

The pid_file needs to be passed in for cleanup purposes.