diff options
author | Trygve Laugstøl <trygvis@inamo.no> | 2018-11-05 23:18:54 +0100 |
---|---|---|
committer | Trygve Laugstøl <trygvis@inamo.no> | 2018-11-05 23:18:54 +0100 |
commit | c25c490677bcba2c2e9fee90db10594bd43f6982 (patch) | |
tree | 23bde01f60bf0e4421f680bcd9912b5a12f5b42d /ansible/roles/mediawiki/files/systemd/mediawiki-jobqueue.service | |
parent | b5b7e21c8ba3c68eab9cd244602f27c21aa5f36b (diff) | |
download | infra-c25c490677bcba2c2e9fee90db10594bd43f6982.tar.gz infra-c25c490677bcba2c2e9fee90db10594bd43f6982.tar.bz2 infra-c25c490677bcba2c2e9fee90db10594bd43f6982.tar.xz infra-c25c490677bcba2c2e9fee90db10594bd43f6982.zip |
Importing Bitraf's mediawiki
o Some improvements, reusing old backup scripts.
Diffstat (limited to 'ansible/roles/mediawiki/files/systemd/mediawiki-jobqueue.service')
-rw-r--r-- | ansible/roles/mediawiki/files/systemd/mediawiki-jobqueue.service | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/ansible/roles/mediawiki/files/systemd/mediawiki-jobqueue.service b/ansible/roles/mediawiki/files/systemd/mediawiki-jobqueue.service new file mode 100644 index 0000000..a27891e --- /dev/null +++ b/ansible/roles/mediawiki/files/systemd/mediawiki-jobqueue.service @@ -0,0 +1,13 @@ +[Unit] +Description=MediaWiki job runner + +[Service] +WorkingDirectory=/opt/mediawiki/mediawiki/maintenance +# 900 is 15 minutes, this task is triggered every 15 minutes +ExecStart=/usr/bin/php runJobs.php --conf ../LocalSettings.php --maxtime=800 --wait +User=www-data +Group=www-data +StandardOutput=journal + +Nice=10 +OOMScoreAdjust=500 |