PID file path for a specific sandbox + port forward.
(name: &str, port: u16)
| 23 | |
| 24 | /// PID file path for a specific sandbox + port forward. |
| 25 | pub fn forward_pid_path(name: &str, port: u16) -> Result<PathBuf> { |
| 26 | Ok(forward_pid_dir()?.join(format!("{name}-{port}.pid"))) |
| 27 | } |
| 28 | |
| 29 | /// Write a PID file for a background forward. |
| 30 | /// |