Skip to content

Commit

Permalink
Merge pull request #57 from CameronNemo/patch-1
Browse files Browse the repository at this point in the history
Renovate scrapy upstart job a bit
  • Loading branch information
pablohoffman committed Jan 14, 2015
2 parents 9a95ece + dad253b commit db63898
Showing 1 changed file with 6 additions and 7 deletions.
13 changes: 6 additions & 7 deletions debian/scrapyd.upstart
Original file line number Diff line number Diff line change
@@ -1,12 +1,11 @@
# Scrapy service
description "scrapyd - run Scrapy spiders"

start on runlevel [2345]
stop on runlevel [06]
stop on runlevel [016] or unmounting-filesystem

chdir /var/lib/scrapyd

script
[ -r /etc/default/scrapyd ] && . /etc/default/scrapyd
logdir=/var/log/scrapyd
exec scrapyd -u scrapy -g nogroup \
--pidfile /var/run/scrapyd.pid \
-l $logdir/scrapyd.log >$logdir/scrapyd.out 2>$logdir/scrapyd.err
[ -r /etc/default/scrapyd ] && . /etc/default/scrapyd
exec /usr/bin/scrapyd -u scrapy -g nogroup -l /var/log/scrapyd/scrapyd.log
end script

0 comments on commit db63898

Please sign in to comment.