From 09d482703970b20cd8264c96bd7631278de0a0c2 Mon Sep 17 00:00:00 2001 From: Mikita Iwanowski Date: Fri, 1 Nov 2024 14:01:09 +0100 Subject: [PATCH] add cloudlinux support to services manager (#4805) --- providers/os/resources/services/manager.go | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/providers/os/resources/services/manager.go b/providers/os/resources/services/manager.go index b72f6a8cbe..ba4a8d4e36 100644 --- a/providers/os/resources/services/manager.go +++ b/providers/os/resources/services/manager.go @@ -40,8 +40,7 @@ type OSServiceManager interface { List() ([]*Service, error) } -type noopOsServiceManager struct { -} +type noopOsServiceManager struct{} func (n *noopOsServiceManager) Name() string { return "none" @@ -165,6 +164,8 @@ func ResolveManager(conn shared.Connection) (OSServiceManager, error) { osm = &AixServiceManager{conn: conn} case asset.Platform.Name == "kali": // debian based with versions from 2015 onwards being systemd based osm = ResolveSystemdServiceManager(conn) + case asset.Platform.Name == "cloudlinux": // rhel based + osm = ResolveSystemdServiceManager(conn) } if osm == nil {