Files
reddit/upstart/reddit-consumer-newcomments_q.conf
Neil Williams cce5c1c8e1 Add reddit-stop event to upstart jobs.
This allows us to quickly turn off every reddit-related process on a
system.
2012-07-16 12:02:56 -07:00

15 lines
312 B
Plaintext

description "newcomments_q - update the /comments pages"
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 newcomments_q$x $REDDIT_INI $REDDIT_ROOT/r2/lib/db/queries.py -c 'run_new_comments()'
end script