Add vote queue consumer upstart scripts.

This commit is contained in:
Neil Williams
2012-06-01 20:32:59 -07:00
parent 37da8b585c
commit 20c126fec1
2 changed files with 28 additions and 0 deletions

View File

@@ -0,0 +1,14 @@
description "process votes cast on comments"
instance $x
stop on runlevel [016]
respawn
respawn limit 10 5
nice 10
script
. /etc/default/reddit
wrap-job paster run --proctitle vote_comment_q$x $REDDIT_INI -c 'from r2.lib.db import queries; queries.process_votes(queries.vote_comment_q)'
end script

View File

@@ -0,0 +1,14 @@
description "process votes cast on links"
instance $x
stop on runlevel [016]
respawn
respawn limit 10 5
nice 10
script
. /etc/default/reddit
wrap-job paster run --proctitle vote_link_q$x $REDDIT_INI -c 'from r2.lib.db import queries; queries.process_votes(queries.vote_link_q)'
end script