Skip to content

Commit

Permalink
Add reddit-stop event to upstart jobs.
Browse files Browse the repository at this point in the history
This allows us to quickly turn off every reddit-related process on a
system.
  • Loading branch information
spladug committed Jul 16, 2012
1 parent d4661ad commit cce5c1c
Show file tree
Hide file tree
Showing 18 changed files with 18 additions and 8 deletions.
2 changes: 1 addition & 1 deletion upstart/reddit-consumer-cloudsearch_q.conf
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ description "update the cloudsearch index with new/changed documents"

instance $x

stop on runlevel [016]
stop on reddit-stop or runlevel [016]

respawn
respawn limit 10 5
Expand Down
2 changes: 1 addition & 1 deletion upstart/reddit-consumer-commentstree_q.conf
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ description "place new comments in the precomputed comment trees"

instance $x

stop on runlevel [016]
stop on reddit-stop or runlevel [016]

respawn
respawn limit 10 5
Expand Down
2 changes: 1 addition & 1 deletion upstart/reddit-consumer-log_q.conf
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ description "consume log messages from log_q (including exception tracebacks)"

instance $x

stop on runlevel [016]
stop on reddit-stop or runlevel [016]

respawn
respawn limit 10 5
Expand Down
2 changes: 1 addition & 1 deletion upstart/reddit-consumer-newcomments_q.conf
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ description "newcomments_q - update the /comments pages"

instance $x

stop on runlevel [016]
stop on reddit-stop or runlevel [016]

respawn
respawn limit 10 5
Expand Down
2 changes: 1 addition & 1 deletion upstart/reddit-consumer-scraper_q.conf
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ description "find thumbnails/embedded content for newly submitted links"

instance $x

stop on runlevel [016]
stop on reddit-stop or runlevel [016]

respawn
respawn limit 10 5
Expand Down
2 changes: 1 addition & 1 deletion upstart/reddit-consumer-vote_comment_q.conf
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ description "process votes cast on comments"

instance $x

stop on runlevel [016]
stop on reddit-stop or runlevel [016]

respawn
respawn limit 10 5
Expand Down
2 changes: 1 addition & 1 deletion upstart/reddit-consumer-vote_link_q.conf
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ description "process votes cast on links"

instance $x

stop on runlevel [016]
stop on reddit-stop or runlevel [016]

respawn
respawn limit 10 5
Expand Down
1 change: 1 addition & 0 deletions upstart/reddit-job-broken_things.conf
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ description "find and delete new broken things (usually caused by failed transac

manual
task
stop on reddit-stop or runlevel [016]

nice 10

Expand Down
1 change: 1 addition & 0 deletions upstart/reddit-job-clean_up_hardcache.conf
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ description "remove expired tokens from hardcache"

manual
task
stop on reddit-stop or runlevel [016]

nice 10

Expand Down
1 change: 1 addition & 0 deletions upstart/reddit-job-email.conf
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ description "send queued emails"

manual
task
stop on reddit-stop or runlevel [016]

nice 10

Expand Down
1 change: 1 addition & 0 deletions upstart/reddit-job-google_checkout.conf
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ description "process uncharged google checkout transactions (gold)"

manual
task
stop on reddit-stop or runlevel [016]

nice 10

Expand Down
1 change: 1 addition & 0 deletions upstart/reddit-job-rising.conf
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ description "update the rising pages"

task
manual
stop on reddit-stop or runlevel [016]

nice 10

Expand Down
1 change: 1 addition & 0 deletions upstart/reddit-job-subscribers.conf
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ description "send subscriber stats to traffic"

manual
task
stop on reddit-stop or runlevel [016]

nice 10

Expand Down
1 change: 1 addition & 0 deletions upstart/reddit-job-update_gold_users.conf
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ description "trigger notification of impending expiration or actual expiration f

manual
task
stop on reddit-stop or runlevel [016]

nice 10

Expand Down
1 change: 1 addition & 0 deletions upstart/reddit-job-update_promos.conf
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ description "update promoted link listings"

manual
task
stop on reddit-stop or runlevel [016]

nice 10

Expand Down
1 change: 1 addition & 0 deletions upstart/reddit-job-update_reddits.conf
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ description "update /reddits sort scores"

manual
task
stop on reddit-stop or runlevel [016]

nice 10

Expand Down
1 change: 1 addition & 0 deletions upstart/reddit-job-update_sr_names.conf
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ description "update the subreddit name search cache"

manual
task
stop on reddit-stop or runlevel [016]

nice 10

Expand Down
2 changes: 1 addition & 1 deletion upstart/reddit-paster.conf
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
description "the reddit app running under paster"

stop on reddit-restart all or reddit-restart apps
stop on reddit-stop or reddit-restart all or reddit-restart apps
start on reddit-start or reddit-restart all or reddit-restart apps

respawn
Expand Down

0 comments on commit cce5c1c

Please sign in to comment.