Job queue
From Wikitech
(Difference between revisions)
(script contents) |
(how to stop) |
||
| Line 6: | Line 6: | ||
:<tt>start-stop-daemon --start --background --chuid apache --nicelevel 20 --make-pidfile --pidfile /var/run/mw-jobs.pid --startas /home/wikipedia/common/php-1.5/maintenance/jobs-loop.sh </tt> | :<tt>start-stop-daemon --start --background --chuid apache --nicelevel 20 --make-pidfile --pidfile /var/run/mw-jobs.pid --startas /home/wikipedia/common/php-1.5/maintenance/jobs-loop.sh </tt> | ||
| + | |||
| + | To stop the job runners on a given server, use: | ||
| + | |||
| + | start-stop-daemon --stop --pidfile /var/run/mw-jobs.pid | ||
| + | |||
| + | It should trap SIGTERM and shut down the child processes. | ||
See also http://www.mediawiki.org/wiki/Manual:Job_queue | See also http://www.mediawiki.org/wiki/Manual:Job_queue | ||
Revision as of 07:54, 19 February 2009
Job queue runners run on srv151-180 (the job-runners node group). Start them with
dsh -N job-runners -f /home/wikipedia/bin/jobs-daemon.
No installation or setup is required, just MediaWiki. The script contains:
- start-stop-daemon --start --background --chuid apache --nicelevel 20 --make-pidfile --pidfile /var/run/mw-jobs.pid --startas /home/wikipedia/common/php-1.5/maintenance/jobs-loop.sh
To stop the job runners on a given server, use:
start-stop-daemon --stop --pidfile /var/run/mw-jobs.pid
It should trap SIGTERM and shut down the child processes.