some changes
This commit is contained in:
@@ -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")
|
||||
}
|
||||
|
||||
},
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user