Skip to content

Commit

Permalink
add cloudlinux support to services manager (#4805)
Browse files Browse the repository at this point in the history
  • Loading branch information
slntopp authored Nov 1, 2024
1 parent 9f6c79d commit 09d4827
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions providers/os/resources/services/manager.go
Original file line number Diff line number Diff line change
Expand Up @@ -40,8 +40,7 @@ type OSServiceManager interface {
List() ([]*Service, error)
}

type noopOsServiceManager struct {
}
type noopOsServiceManager struct{}

func (n *noopOsServiceManager) Name() string {
return "none"
Expand Down Expand Up @@ -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 {
Expand Down

0 comments on commit 09d4827

Please sign in to comment.