For a couple checks we would need to know if a service is static, which is different from enabled
"static" The unit file is not enabled, and has no provisions for enabling in the [Install] unit file section.
Describe the solution you'd like
The solution would be the light-weight, by just adding the static field to the service resource.
Describe alternatives you've considered
Alternatively @chris-rock suggested a dedicated resource for systemd as a solution.
Additional context
There has been an somewhat related issue where the .masked status of sub-services such as .socket wasn't displayed correctly.
Currently we're using the command resource to deal with that, too, which isn't ideal.
For a couple checks we would need to know if a service is
static
, which is different fromenabled
Describe the solution you'd like The solution would be the light-weight, by just adding the
static
field to theservice
resource.Describe alternatives you've considered Alternatively @chris-rock suggested a dedicated resource for
systemd
as a solution.Additional context There has been an somewhat related issue where the
.masked
status of sub-services such as.socket
wasn't displayed correctly. Currently we're using thecommand
resource to deal with that, too, which isn't ideal.https://github.com/mondoohq/cnquery/issues/1606