Skip to content

Commit b2677db

Browse files
committed
Be extra certain cron is installed and running
1 parent 43b7b74 commit b2677db

File tree

3 files changed

+20
-8
lines changed

3 files changed

+20
-8
lines changed

recipes/cron.rb

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
#
2+
# Cookbook:: chatmail
3+
# Recipe:: cron
4+
#
5+
# Copyright:: 2023, The Authors, All Rights Reserved.
6+
7+
package 'cron'
8+
9+
service 'cron.service' do
10+
action [:enable, :start]
11+
end
12+
13+
template '/etc/cron.d/expunge' do
14+
source 'expunge.cron.erb'
15+
owner 0
16+
group 0
17+
mode '0644'
18+
variables({ 'config' => node['chatmail'] })
19+
end

recipes/default.rb

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,4 +14,5 @@
1414
include_recipe 'chatmail::nginx'
1515
include_recipe 'chatmail::mtail'
1616
include_recipe 'chatmail::chatmaild'
17+
include_recipe 'chatmail::cron'
1718
include_recipe 'chatmail::zone'

recipes/dovecot.rb

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -57,11 +57,3 @@
5757
service 'dovecot.service' do
5858
action [:enable, :start]
5959
end
60-
61-
template '/etc/cron.d/expunge' do
62-
source 'expunge.cron.erb'
63-
owner 0
64-
group 0
65-
mode '0644'
66-
variables({ 'config' => node['chatmail'] })
67-
end

0 commit comments

Comments
 (0)