Skip to content

Commit

Permalink
Use Telemetry control, not system
Browse files Browse the repository at this point in the history
Fixes: #68

Signed-off-by: Mark D Horn <mark.d.horn@intel.com>
  • Loading branch information
mdhorn committed Sep 21, 2018
1 parent 917db29 commit e8b7bca
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions telemetry/telemetry.go
Original file line number Diff line number Diff line change
Expand Up @@ -279,9 +279,8 @@ func (tl *Telemetry) UpdateLocalTelemetryServer() error {
// required after changes to the configuration file
func (tl *Telemetry) RestartLocalTelemetryServer() error {
args := []string{
"systemctl",
"telemctl",
"restart",
"telemd.service",
}

err := cmd.RunAndLog(args...)
Expand All @@ -295,9 +294,8 @@ func (tl *Telemetry) RestartLocalTelemetryServer() error {
// StopLocalTelemetryServer stops the Telemetry service
func (tl *Telemetry) StopLocalTelemetryServer() error {
args := []string{
"systemctl",
"telemctl",
"stop",
"telemd.service",
}

err := cmd.RunAndLog(args...)
Expand Down

0 comments on commit e8b7bca

Please sign in to comment.