Commit 4c6eb1a 1 parent 30613a2 commit 4c6eb1a Copy full SHA for 4c6eb1a
File tree 1 file changed +18
-4
lines changed
1 file changed +18
-4
lines changed Original file line number Diff line number Diff line change 78
78
mode "0755"
79
79
end
80
80
81
- cron_d "blogs" do
82
- minute "*/30"
81
+ systemd_service "blogs-update" do
82
+ description "Update blog aggregator"
83
+ exec_start "/usr/local/bin/blogs-update"
83
84
user "blogs"
84
- command "/usr/local/bin/blogs-update"
85
- mailto "admins@openstreetmap.org"
85
+ private_tmp true
86
+ private_devices true
87
+ protect_system "strict"
88
+ protect_home true
89
+ read_write_paths "/srv/blogs.openstreetmap.org"
90
+ end
91
+
92
+ systemd_timer "blogs-update" do
93
+ description "Update blog aggregator"
94
+ on_boot_sec "15m"
95
+ on_unit_inactive_sec "30m"
96
+ end
97
+
98
+ service "blogs-update.timer" do
99
+ action [ :enable , :start ]
86
100
end
87
101
88
102
template "/etc/cron.daily/blogs-backup" do
You can’t perform that action at this time.
0 commit comments