mirror of
https://github.com/inspec/inspec
synced 2024-12-23 03:23:27 +00:00
98546984ae
* service resource: Fix no `.service` + systemd bug This modifies the `enabled?` check to fallback to `sysv_service` in the event that a `.service` file cannot be found. For example: On Debian 8.7 the stock apache2 package does not deploy a `.service` file but deploys a SysV style service. This causes `systemctl is-enabled` to fail when the service is in fact enabled. * Remove `cmd_stderr` and clean up `cmd_exit_1` * Clean up `stderr` assignment using ternary
7 lines
145 B
Text
7 lines
145 B
Text
Id=apache2.service
|
|
Names=apache2.service
|
|
Description=LSB: Apache2 web server
|
|
LoadState=loaded
|
|
UnitFileState=
|
|
SubState=running
|
|
ActiveState=active
|