Permalink
Browse files

Updated and moved upstart task.

  • Loading branch information...
1 parent acde105 commit 91554072395ae9a1ee07f7c76eb6b68ae76cae9d @spladug spladug committed May 30, 2012
Showing with 10 additions and 6 deletions.
  1. +0 −6 reddit-tweeter.conf
  2. +10 −0 upstart/reddit-tweeter.conf
View
6 reddit-tweeter.conf
@@ -1,6 +0,0 @@
-description "tweet the hottest links from a given listing"
-
-task
-instance $ini $url
-
-exec /opt/reddittweeter/bin/reddittweeter.py "$ini" "$url"
View
10 upstart/reddit-tweeter.conf
@@ -0,0 +1,10 @@
+description "tweet the hottest links from a given listing"
+
+instance $user
+
+task
+
+script
+ . /etc/default/reddit
+ wrap-job /opt/reddittweeter/bin/reddittweeter.py /opt/reddittweeter/etc/$user.ini "$url"
+end script

0 comments on commit 9155407

Please sign in to comment.