From 4bfe9dd5ad5dca5a7e85d855138389d9b0aa4bd0 Mon Sep 17 00:00:00 2001 From: henrygd Date: Fri, 14 Nov 2025 17:28:40 -0500 Subject: [PATCH] add missing systemd methods for nonlinux --- agent/systemd_nonlinux.go | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/agent/systemd_nonlinux.go b/agent/systemd_nonlinux.go index 2aaf58c5..cd586190 100644 --- a/agent/systemd_nonlinux.go +++ b/agent/systemd_nonlinux.go @@ -23,6 +23,16 @@ func (sm *systemdManager) getServiceStats(conn any, refresh bool) []*systemd.Ser return nil } +// getServiceStatsCount returns 0 for non-linux systems. +func (sm *systemdManager) getServiceStatsCount() int { + return 0 +} + +// getFailedServiceCount returns 0 for non-linux systems. +func (sm *systemdManager) getFailedServiceCount() uint16 { + return 0 +} + func (sm *systemdManager) getServiceDetails(string) (systemd.ServiceDetails, error) { return nil, errors.New("systemd manager unavailable") }