diff --git a/.vscode/launch.json b/.vscode/launch.json index 7386e4b09e..7af0cd626a 100644 --- a/.vscode/launch.json +++ b/.vscode/launch.json @@ -25,7 +25,7 @@ "request": "launch", "mode": "debug", "program": "./InfrastructureAgent", - "args": ["start"] + "args": ["start"], }, { "name": "Node.js - Debug Current File", diff --git a/InfrastructureAgent/main.go b/InfrastructureAgent/main.go index 9473e52de7..e228bcf344 100644 --- a/InfrastructureAgent/main.go +++ b/InfrastructureAgent/main.go @@ -136,7 +136,7 @@ func main() { if err != nil { slog.Error(err.Error()) - os.Exit(2) + os.Exit(1) } slog.Info("OneUptime Infrastructure Agent Started") @@ -157,7 +157,7 @@ func main() { err = s.Run() if err != nil { slog.Error(err.Error()) - os.Exit(2) + os.Exit(1) } case "uninstall", "stop", "restart": diff --git a/InfrastructureAgent/oneuptime-infrastructure-agent b/InfrastructureAgent/oneuptime-infrastructure-agent index 5fef65b475..a8e05294f2 100755 Binary files a/InfrastructureAgent/oneuptime-infrastructure-agent and b/InfrastructureAgent/oneuptime-infrastructure-agent differ