Skip to content

Commit

Permalink
osx service for categraf
Browse files Browse the repository at this point in the history
  • Loading branch information
kongfei605 committed Oct 18, 2023
1 parent 1845c51 commit 15cf97d
Showing 1 changed file with 24 additions and 0 deletions.
24 changes: 24 additions & 0 deletions agent/install/service_darwin.go
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
package install

import (
"github.com/kardianos/service"
)

const (
ServiceName = "categraf"
)

var (
serviceConfig = &service.Config{
// 服务显示名称
Name: ServiceName,
// 服务名称
DisplayName: "categraf",
// 服务描述
Description: "Opensource telemetry collector",
}
)

func ServiceConfig() *service.Config {
return serviceConfig
}

0 comments on commit 15cf97d

Please sign in to comment.