Skip to content

Commit

Permalink
mediawiki: set max runtime for all jobs. restart on-failure
Browse files Browse the repository at this point in the history
  • Loading branch information
Firefishy committed Dec 7, 2023
1 parent 90089d0 commit 088a181
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions cookbooks/mediawiki/recipes/default.rb
Original file line number Diff line number Diff line change
Expand Up @@ -102,6 +102,7 @@
user node[:mediawiki][:user]
nice 10
runtime_max_sec 3600
restart "on-failure"
sandbox :enable_network => true
memory_deny_write_execute false
restrict_address_families "AF_UNIX"
Expand All @@ -119,6 +120,8 @@
exec_start "/usr/bin/php -d memory_limit=2048M -d error_reporting=22517 /srv/%i/w/maintenance/runJobs.php --server=https://%i --maxtime=55 --type=enotifNotify --memory-limit=2048M --procs=4"
user node[:mediawiki][:user]
nice 10
runtime_max_sec 3600
restart "on-failure"
sandbox :enable_network => true
memory_deny_write_execute false
restrict_address_families "AF_UNIX"
Expand All @@ -136,6 +139,8 @@
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 43200
restart "on-failure"
sandbox :enable_network => true
memory_deny_write_execute false
restrict_address_families "AF_UNIX"
Expand Down

0 comments on commit 088a181

Please sign in to comment.