diff --git a/command/command.go b/command/command.go index a1c0c79..8e992a0 100644 --- a/command/command.go +++ b/command/command.go @@ -111,6 +111,7 @@ func (c *command) Terminate(wait time.Duration) { return } + log.Println("- Stopping") // Try to stop the process by sending a SIGINT signal if err := c.kill(syscall.SIGINT); err != nil { log.Println("Failed to terminate process with interrupt:", err) diff --git a/runner/runner.go b/runner/runner.go index 91239af..b1e42c7 100644 --- a/runner/runner.go +++ b/runner/runner.go @@ -58,7 +58,6 @@ func (r *runner) Start() { for fp := range matched { files := gather(fp, matched, 500*time.Millisecond) - log.Println("- Stopping") // Terminate previous running command r.command.Terminate(2 * time.Second)