MCPcopy Create free account
hub / github.com/dtormoen/tsk-tsk / remove_pid

Method remove_pid

src/server/lifecycle.rs:61–67  ·  view source on GitHub ↗

Remove PID file

(&self)

Source from the content-addressed store, hash-verified

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)]

Callers 1

cleanupMethod · 0.80

Calls 2

remove_fileFunction · 0.85
pid_fileMethod · 0.80

Tested by

no test coverage detected