我正在尝试在auditd的centos7 ec2实例(ami-d2c924b2)上运行服务资源:
service 'auditd' do
provider Chef::Provider::Service::Init::Redhat
action :nothing
end但是,对于centos7实例,服务资源似乎已损坏:
service[auditd]: unable to locate the init.d script!我也得到了这个错误:service[auditd] cannot be found in the resource collection.
发布于 2016-11-23 10:58:00
redhat提供程序专门用于/etc/init.d管理的Redhat风格。CentOS 7使用的是systemd,它应该会被自动检测到。
https://stackoverflow.com/questions/40753359
复制相似问题