Skip to content

Commit

Permalink
systemd-notify: add basic error handling
Browse files Browse the repository at this point in the history
  • Loading branch information
UTsweetyfish committed May 13, 2024
1 parent c6ba9cb commit a290365
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/lastore-daemon/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -146,7 +146,9 @@ func main() {
go func() {
logger.Info("systemd-notify --ready")
cmd := exec.Command("systemd-notify", "--ready")
cmd.Run()
if err := cmd.Run(); err != nil {
logger.Error("Error running systemd-notify command:", err)
}
}()

// Force notify changed at the first time
Expand Down

0 comments on commit a290365

Please # to comment.