Skip to content

Commit

Permalink
add cloudlinux support to services manager
Browse files Browse the repository at this point in the history
  • Loading branch information
slntopp committed Nov 1, 2024
1 parent 9f6c79d commit 178c834
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 178c834

Please sign in to comment.