mirror of
https://github.com/saltstack-formulas/cron-formula.git
synced 2025-02-18 09:04:26 +01:00
18 lines
281 B
Ruby
18 lines
281 B
Ruby
|
control 'Cron service' do
|
||
|
title 'should be running and enabled'
|
||
|
|
||
|
service_name =
|
||
|
case os[:family]
|
||
|
when 'debian', 'suse'
|
||
|
'cron'
|
||
|
else
|
||
|
'crond'
|
||
|
end
|
||
|
|
||
|
describe service(service_name) do
|
||
|
it { should be_enabled }
|
||
|
it { should be_running }
|
||
|
end
|
||
|
|
||
|
end
|