Skip to content

Commit 4bfe9dd

Browse files
committed
add missing systemd methods for nonlinux
1 parent e159a75 commit 4bfe9dd

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

agent/systemd_nonlinux.go

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,16 @@ func (sm *systemdManager) getServiceStats(conn any, refresh bool) []*systemd.Ser
2323
return nil
2424
}
2525

26+
// getServiceStatsCount returns 0 for non-linux systems.
27+
func (sm *systemdManager) getServiceStatsCount() int {
28+
return 0
29+
}
30+
31+
// getFailedServiceCount returns 0 for non-linux systems.
32+
func (sm *systemdManager) getFailedServiceCount() uint16 {
33+
return 0
34+
}
35+
2636
func (sm *systemdManager) getServiceDetails(string) (systemd.ServiceDetails, error) {
2737
return nil, errors.New("systemd manager unavailable")
2838
}

0 commit comments

Comments
 (0)