From: Tom Hughes Date: Fri, 8 Mar 2024 09:26:07 +0000 (+0000) Subject: Delete mediawiki link refresh service and timer X-Git-Url: https://git.openstreetmap.org./chef.git/commitdiff_plain/b9c0d9f47a55952cdb03690a9d1b865dd072c588 Delete mediawiki link refresh service and timer --- diff --git a/cookbooks/mediawiki/recipes/default.rb b/cookbooks/mediawiki/recipes/default.rb index 215fbf1b9..6018b047a 100644 --- a/cookbooks/mediawiki/recipes/default.rb +++ b/cookbooks/mediawiki/recipes/default.rb @@ -133,20 +133,11 @@ systemd_timer "mediawiki-email-jobs@" do end systemd_service "mediawiki-refresh-links@" do - description "Refresh mediawiki links for %i" - exec_start "/usr/bin/php -d memory_limit=16G -d error_reporting=22517 /srv/%i/w/maintenance/refreshLinks.php --server=https://%i --memory-limit=16G" - user node[:mediawiki][:user] - nice 10 - runtime_max_sec 259200 - sandbox :enable_network => true - memory_deny_write_execute false - restrict_address_families "AF_UNIX" - read_write_paths "/srv/%i" + action :delete end systemd_timer "mediawiki-refresh-links@" do - description "Refresh mediawiki links for %i" - on_calendar "Sat 00:05" + action :delete end systemd_service "mediawiki-cleanup-gs" do diff --git a/cookbooks/mediawiki/resources/site.rb b/cookbooks/mediawiki/resources/site.rb index f31d07d82..ef3d7c20b 100644 --- a/cookbooks/mediawiki/resources/site.rb +++ b/cookbooks/mediawiki/resources/site.rb @@ -162,10 +162,6 @@ action :create do only_if { ::File.exist?("#{mediawiki_directory}/LocalSettings.php") } end - service "mediawiki-refresh-links@#{new_resource.site}.timer" do - action [:disable, :stop] - end - template "/etc/cron.daily/mediawiki-#{cron_name}-backup" do cookbook "mediawiki" source "mediawiki-backup.cron.erb"