service: return better error messages from executed commands.
This commit is contained in:
@@ -65,9 +65,9 @@ func main() {
|
||||
flag.Parse()
|
||||
|
||||
svcConfig := &service.Config{
|
||||
Name: "GoServiceTest",
|
||||
DisplayName: "Go Service Test",
|
||||
Description: "This is a test Go service.",
|
||||
Name: "GoServiceExampleLogging",
|
||||
DisplayName: "Go Service Example for Logging",
|
||||
Description: "This is an example Go service that outputs log messages.",
|
||||
}
|
||||
|
||||
prg := &program{}
|
||||
|
||||
@@ -30,9 +30,9 @@ func (p *program) Stop(s service.Service) error {
|
||||
|
||||
func main() {
|
||||
svcConfig := &service.Config{
|
||||
Name: "GoServiceTest",
|
||||
DisplayName: "Go Service Test",
|
||||
Description: "This is a test Go service.",
|
||||
Name: "GoServiceExampleSimple",
|
||||
DisplayName: "Go Service Example",
|
||||
Description: "This is an example Go service.",
|
||||
}
|
||||
|
||||
prg := &program{}
|
||||
|
||||
Reference in New Issue
Block a user