Skip to content

Commit

Permalink
upstart: Add fastlane upstart scripts.
Browse files Browse the repository at this point in the history
  • Loading branch information
rram authored and spladug committed Mar 28, 2013
1 parent 7ef0f8e commit ace193a
Show file tree
Hide file tree
Showing 2 changed files with 28 additions and 0 deletions.
14 changes: 14 additions & 0 deletions upstart/reddit-consumer-commentstree_fastlane_q.conf
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
description "place new comments in the precomputed comment trees - dedicated fastlane edition"

instance $x

stop on reddit-stop or runlevel [016]

respawn
respawn limit 10 5

nice 10
script
. /etc/default/reddit
wrap-job paster run --proctitle commentstree_fastlane_q$x $REDDIT_INI $REDDIT_ROOT/r2/lib/db/queries.py -c 'run_commentstree("commentstree_fastlane_q")'
end script
14 changes: 14 additions & 0 deletions upstart/reddit-consumer-vote_fastlane_q.conf
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
description "vote_q processor - dedicated fastlane edition"

instance $x

stop on reddit-stop or runlevel [016]

respawn
respawn limit 10 5

nice 10
script
. /etc/default/reddit
wrap-job paster run --proctitle vote_fastlane_q$x $REDDIT_INI $REDDIT_ROOT/r2/lib/db/queries.py -c 'process_votes(vote_fastlane_q)'
end script

0 comments on commit ace193a

Please sign in to comment.