Skip to content

Commit

Permalink
wip
Browse files Browse the repository at this point in the history
  • Loading branch information
jdx committed Dec 8, 2024
1 parent a0fa1bd commit 367f837
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/cli/daemon/stop.rs
Original file line number Diff line number Diff line change
Expand Up @@ -12,11 +12,11 @@ impl Stop {
pub async fn run(&self) -> Result<()> {
let pid_file = StateFile::read(&*env::PITCHFORK_STATE_FILE)?;
if let Some(d) = pid_file.daemons.get("pitchfork") {
if !(kill_or_stop(d.pid, true)?) {
return Ok(());
}
info!("Stopping pitchfork daemon with pid {}", d.pid);
kill_or_stop(d.pid, true)?;
} else {
warn!("Pitchfork daemon is not running");
}

Ok(())
}
}

0 comments on commit 367f837

Please sign in to comment.