forked from scrapy/scrapy
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Added new Scrapy service with support for:
* multiple projects * uploading scrapy projects as Python eggs * scheduling spiders using a JSON API Documentation is added along with the code. Closes scrapy#218. --HG-- rename : debian/scrapy-service.default => debian/scrapyd.default rename : debian/scrapy-service.dirs => debian/scrapyd.dirs rename : debian/scrapy-service.install => debian/scrapyd.install rename : debian/scrapy-service.lintian-overrides => debian/scrapyd.lintian-overrides rename : debian/scrapy-service.postinst => debian/scrapyd.postinst rename : debian/scrapy-service.postrm => debian/scrapyd.postrm rename : debian/scrapy-service.upstart => debian/scrapyd.upstart rename : extras/scrapy.tac => extras/scrapyd.tac
- Loading branch information
1 parent
1b76687
commit 37e9c5d
Showing
42 changed files
with
1,023 additions
and
193 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,3 @@ | ||
debian/tmp/usr | ||
usr/lib/python*/*-packages/scrapy | ||
usr/bin | ||
extras/scrapy_bash_completion etc/bash_completion.d/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
[scrapyd] | ||
http_port = 6800 | ||
debug = off | ||
#max_proc = 1 | ||
eggs_dir = /var/lib/scrapyd/eggs | ||
dbs_dir = /var/lib/scrapyd/dbs | ||
logs_dir = /var/log/scrapyd |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
# Defaults for Scrapy service |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
var/lib/scrapyd | ||
var/lib/scrapyd/eggs | ||
var/lib/scrapyd/dbs | ||
var/log/scrapyd |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
usr/lib/python*/*-packages/scrapyd | ||
debian/scrapyd.cfg etc | ||
extras/scrapyd.tac usr/share/scrapyd |
2 changes: 1 addition & 1 deletion
2
debian/scrapy-service.lintian-overrides → debian/scrapyd.lintian-overrides
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,2 @@ | ||
new-package-should-close-itp-bug | ||
script-in-etc-init.d-not-registered-via-update-rc.d /etc/init.d/scrapy-service | ||
script-in-etc-init.d-not-registered-via-update-rc.d /etc/init.d/scrapyd |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
# Scrapy service | ||
|
||
start on runlevel [2345] | ||
stop on runlevel [06] | ||
|
||
script | ||
[ -r /etc/default/scrapyd ] && . /etc/default/scrapyd | ||
logdir=/var/log/scrapyd | ||
exec twistd -ny /usr/share/scrapyd/scrapyd.tac \ | ||
-u scrapy -g nogroup \ | ||
--pidfile /var/run/scrapyd/scrapy.pid \ | ||
-l $logdir/scrapyd.log >$logdir/scrapyd.out 2>$logdir/scrapyd.err | ||
end script |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.