Remove PID file
(&self)
| 59 | |
| 60 | /// Remove PID file |
| 61 | pub fn remove_pid(&self) -> Result<(), Box<dyn std::error::Error + Send + Sync>> { |
| 62 | let pid_file = self.tsk_env.pid_file(); |
| 63 | if pid_file.exists() { |
| 64 | fs::remove_file(&pid_file)?; |
| 65 | } |
| 66 | Ok(()) |
| 67 | } |
| 68 | |
| 69 | /// Send SIGTERM to the server process |
| 70 | #[cfg(unix)] |
no test coverage detected