some changes

This commit is contained in:
2025-11-30 12:50:38 +02:00
parent 004bb7ef7f
commit c1e5fc90ee
9 changed files with 140 additions and 27 deletions

View File

@@ -58,8 +58,13 @@ var reloadCmd = &cobra.Command{
if err != nil {
slog.Error("failed to find process", slog.Int("pid", *optsReloadCmd.PID), slog.String("err", err.Error()))
}
proc.Signal(syscall.SIGHUP)
slog.Debug("done")
err = proc.Signal(syscall.SIGHUP)
if err != nil {
slog.Error("failed to reload process", slog.Int("pid", *optsReloadCmd.PID), slog.String("err", err.Error()))
} else {
slog.Debug("done")
}
},
}