HarryHarcourt / Ansible-RHEL7-CIS-Benchmarks

This repository contains an Ansible Role for RHEL7 / CentOS based on the Center for Internet Security Benchmarks
MIT License
103 stars 73 forks source link

Reload auditd using legacy init script #22

Closed caruccio closed 4 years ago

caruccio commented 4 years ago

According to this comment, auditd still uses legacy SysV init scripts to start/stop/reload. CentOS 7.6 reports this error when try to reload auditd usings systemctl:

Failed to reload auditd.service: Job type reload is not applicable for unit auditd.service.
See system logs and 'systemctl status auditd.service' for details.
HarryHarcourt commented 4 years ago

Sorry for the delay, I will validate shortly, thanks!

HarryHarcourt commented 4 years ago

Ok - I think I have seen this before, and reading through this I agree it is better to call the command rather than play with the OS configuration of the service. https://stackoverflow.com/questions/41053331/ansible-how-to-restart-auditd-service-on-centos-7-get-error-about-dependency/47442135