mirror of
https://github.com/inspec/inspec
synced 2024-12-18 00:53:22 +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
16 lines
390 B
Text
16 lines
390 B
Text
/etc/rc.d/rc0.d/S01halt
|
|
/etc/rc.d/rc0.d/S00killall
|
|
/etc/rc.d/rc2.d/S90crond
|
|
/etc/rc.d/rc2.d/S55sshd
|
|
/etc/rc.d/rc5.d/S90crond
|
|
/etc/rc.d/rc5.d/S55sshd
|
|
/etc/rc.d/rc1.d/S99single
|
|
/etc/rc.d/rc3.d/S90crond
|
|
/etc/rc.d/rc3.d/S55sshd
|
|
/etc/rc.d/rc4.d/S08ip6tables
|
|
/etc/rc.d/rc4.d/S90crond
|
|
/etc/rc.d/rc4.d/S55sshd
|
|
/etc/rc2.d/S02apache2
|
|
/etc/rc3.d/S02apache2
|
|
/etc/rc4.d/S02apache2
|
|
/etc/rc5.d/S02apache2
|