control 'logrotate.service.running' do | control 'logrotate.service.running' do | ||||
title 'The service should be installed, enabled and running' | title 'The service should be installed, enabled and running' | ||||
only_if('Disabled on Arch Linux') do | |||||
!%w[arch].include?(platform[:name]) | |||||
end | |||||
service = | service = | ||||
case platform[:family] | |||||
case system.platform[:family] | |||||
when 'arch' | |||||
'cronie' | |||||
when 'redhat', 'fedora' | when 'redhat', 'fedora' | ||||
'crond' | 'crond' | ||||
else | else |