We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent f174202 commit 17580cbCopy full SHA for 17580cb
internal/commands/service.go
@@ -61,7 +61,16 @@ func newServiceInstallCmd() *cobra.Command {
61
}
62
63
ui.PrintStatus("success", status)
64
- ui.PrintStatus("info", "Run 'catops service start' to start monitoring")
+
65
+ // Auto-start the service after installation
66
+ ui.PrintStatus("info", "Starting service...")
67
+ startStatus, err := svc.Start()
68
+ if err != nil {
69
+ ui.PrintStatus("warning", fmt.Sprintf("Service installed but failed to start: %v", err))
70
+ ui.PrintStatus("info", "Run 'catops service start' manually")
71
+ } else {
72
+ ui.PrintStatus("success", startStatus)
73
+ }
74
ui.PrintSectionEnd()
75
},
76
0 commit comments