Skip to content

Commit

Permalink
add comments to shutdown event log
Browse files Browse the repository at this point in the history
  • Loading branch information
P6g9YHK6 authored Oct 3, 2024
1 parent 687e890 commit 0ba03d8
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions agent/rpc.go
Original file line number Diff line number Diff line change
Expand Up @@ -349,7 +349,7 @@ func (a *Agent) RunRPC() {
ret.Encode("ok")
msg.Respond(resp)
if runtime.GOOS == "windows" {
CMD("shutdown.exe", []string{"/s", "/t", "5", "/f"}, 15, false)
CMD("shutdown.exe", []string{"/s", "/t", "5", "/f", "/c", "Shutdown initiated by RMM agent."}, 15, false)
} else {
opts := a.NewCMDOpts()
opts.Command = "shutdown -h now"
Expand All @@ -365,7 +365,7 @@ func (a *Agent) RunRPC() {
ret.Encode("ok")
msg.Respond(resp)
if runtime.GOOS == "windows" {
CMD("shutdown.exe", []string{"/r", "/t", "5", "/f"}, 15, false)
CMD("shutdown.exe", []string{"/r", "/t", "5", "/f", "/c", "Reboot initiated by RMM agent."}, 15, false)
} else {
opts := a.NewCMDOpts()
opts.Command = "reboot"
Expand Down

0 comments on commit 0ba03d8

Please sign in to comment.