aboutsummaryrefslogtreecommitdiff
path: root/ansible/roles/mw-backend/files/etc/systemd/system/mw-jobqueue.service
diff options
context:
space:
mode:
Diffstat (limited to 'ansible/roles/mw-backend/files/etc/systemd/system/mw-jobqueue.service')
-rw-r--r--ansible/roles/mw-backend/files/etc/systemd/system/mw-jobqueue.service12
1 files changed, 12 insertions, 0 deletions
diff --git a/ansible/roles/mw-backend/files/etc/systemd/system/mw-jobqueue.service b/ansible/roles/mw-backend/files/etc/systemd/system/mw-jobqueue.service
new file mode 100644
index 0000000..a944443
--- /dev/null
+++ b/ansible/roles/mw-backend/files/etc/systemd/system/mw-jobqueue.service
@@ -0,0 +1,12 @@
+[Unit]
+Description=MediaWiki Job runner
+
+[Service]
+WorkingDirectory=/var/lib/mediawiki/maintenance
+ExecStart=/usr/bin/php runJobs.php --maxjobs 100
+User=www-data
+Group=www-data
+StandardOutput=journal
+
+Nice=10
+OOMScoreAdjust=500