diff --git a/cmd/cagent/main.go b/cmd/cagent/main.go index c85ef20..b8128e8 100644 --- a/cmd/cagent/main.go +++ b/cmd/cagent/main.go @@ -268,13 +268,13 @@ func main() { switch systemManager.String() { case "unix-systemv": - fmt.Printf("Run this command to stop/start it:\nservice %s stop\nservice %s start\n\n", svcConfig.Name, svcConfig.Name) + fmt.Printf("Run this command to stop/start it:\nsudo service %s stop\nsudo service %s start\n\n", svcConfig.Name, svcConfig.Name) case "linux-upstart": - fmt.Printf("Run this command to stop/start it:\ninitctl stop %s\ninitctl start %s\n\n", svcConfig.Name, svcConfig.Name) + fmt.Printf("Run this command to stop/start it:\nsudo initctl stop %s\nsudo initctl start %s\n\n", svcConfig.Name, svcConfig.Name) case "linux-systemd": - fmt.Printf("Run this command to stop/start it:\nsystemctl stop %s\nsystemctl start %s.service\n\n", svcConfig.Name, svcConfig.Name) + fmt.Printf("Run this command to stop/start it:\nsudo systemctl stop %s.service\nsudo systemctl start %s.service\n\n", svcConfig.Name, svcConfig.Name) case "darwin-launchd": - fmt.Printf("Run this command to stop/start it:\nlaunchctl unload %s\nlaunchctl load /Library/LaunchDaemons/%s.plist\n\n", svcConfig.Name, svcConfig.Name) + fmt.Printf("Run this command to stop/start it:\nsudo launchctl unload %s\nsudo launchctl load /Library/LaunchDaemons/%s.plist\n\n", svcConfig.Name, svcConfig.Name) case "windows-service": fmt.Printf("Use the Windows Service Manager to stop/start it\n\n") }