From 53a1959fe44e55471121f00e7277491f9f9e1255 Mon Sep 17 00:00:00 2001 From: "Zed A. Shaw" Date: Sun, 14 Sep 2025 11:24:05 -0400 Subject: [PATCH] Ozai now reports if a process can't be started and exits. Closes #2. --- main.go | 6 +++++- tools/cmd/tester/main.go | 1 + 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/main.go b/main.go index e235c92..6563873 100644 --- a/main.go +++ b/main.go @@ -36,7 +36,11 @@ func LaunchProcess(proc *config.Process) { stdout, err := proc.ExecCmd.StdoutPipe(); LaunchLogger(stdout, os.Stdout, err) - proc.ExecCmd.Start() + err = proc.ExecCmd.Start() + if err != nil { + log.Fatalf("FAIL %s %s err=%v", proc.Command, proc.URL, err) + } + fmt.Println("WAITING for", proc.URL) fmt.Println("SENDING READY on channel") diff --git a/tools/cmd/tester/main.go b/tools/cmd/tester/main.go index e30b0e2..b8917b7 100644 --- a/tools/cmd/tester/main.go +++ b/tools/cmd/tester/main.go @@ -62,6 +62,7 @@ func Supervisor(id int, count int) { func main() { count := flag.Int("count", 10, "Seconds to wait") + id := flag.Int("id", 1, "Tester ID to use.") flag.Parse()