Skip to content

Commit

Permalink
chore: add log comments
Browse files Browse the repository at this point in the history
  • Loading branch information
ArmandMeppa committed Dec 23, 2024
1 parent fb1573b commit 0282d3c
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions wazuh-agent-status/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -51,12 +51,15 @@ func handleConnection(conn net.Conn) {
status, connection := checkServiceStatus()
conn.Write([]byte(fmt.Sprintf("Status: %s, Connection: %s\n", status, connection)))
case "pause":
conn.Write([]byte("Pausing the Wazuh Agent...\n"))
pauseAgent()
conn.Write([]byte("Paused the Wazuh Agent\n"))
case "restart":
conn.Write([]byte("Restarting the Wazuh Agent...\n"))
restartAgent()
conn.Write([]byte("Restarted the Wazuh Agent\n"))
case "update":
conn.Write([]byte("Updating the Wazuh Agent...\n"))
updateAgent()
conn.Write([]byte("Updated the Wazuh Agent\n"))
default:
Expand Down

0 comments on commit 0282d3c

Please sign in to comment.