From 7e506aa1e2e7c2f24473447d631fe979ff75a416 Mon Sep 17 00:00:00 2001 From: Grant Slater Date: Fri, 17 Jan 2025 03:14:51 +0000 Subject: [PATCH] wiki: Run dump nicer only once a week --- cookbooks/wiki/recipes/default.rb | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/cookbooks/wiki/recipes/default.rb b/cookbooks/wiki/recipes/default.rb index e7a2b3e57..e774d046f 100644 --- a/cookbooks/wiki/recipes/default.rb +++ b/cookbooks/wiki/recipes/default.rb @@ -153,6 +153,7 @@ systemd_service "wiki-dump" do exec_start "/usr/bin/php w/maintenance/dumpBackup.php --full --quiet --output=gzip:dump/dump.xml.gz" working_directory "/srv/wiki.openstreetmap.org" user "wiki" + nice 19 sandbox :enable_network => true memory_deny_write_execute false restrict_address_families "AF_UNIX" @@ -161,7 +162,7 @@ end systemd_timer "wiki-dump" do description "Wiki dump" - on_calendar "02:00" + on_calendar "Sun 02:30" end service "wiki-dump.timer" do -- 2.39.5