Permalink
Browse files

Add upstart job.

  • Loading branch information...
1 parent 6e67086 commit 3ea7a865252083f0b245ad640165a284d8abe560 @spladug spladug committed May 30, 2012
Showing with 12 additions and 0 deletions.
  1. +12 −0 upstart/reddit-job-postcards.conf
@@ -0,0 +1,12 @@
+description "process queued tasks for postcard app"
+
+manual
+task
+
+nice 10
+
+script
+ export POSTCARD_SETTINGS=/opt/postcards/postcards.cfg
+ . /etc/default/reddit
+ wrap-job python /opt/postcards/process_queue.py generate_thumbnails
+end script

0 comments on commit 3ea7a86

Please sign in to comment.