1
0
mirror of https://github.com/scrapy/scrapy.git synced 2025-02-24 10:03:55 +00:00

added quick script script to launch scrapyd

This commit is contained in:
Pablo Hoffman 2011-06-20 10:48:34 -03:00
parent 841007b5c5
commit 5de5cac43e

14
bin/scrapyd Executable file
View File

@ -0,0 +1,14 @@
#!/bin/sh
repotac="$(dirname $0)/../extras/scrapyd.tac"
if [ -f "$repotac" ]; then
tacfile="$repotac"
elif [ -f "/usr/share/scrapyd/scrapyd.tac" ]; then
tacfile="/usr/share/scrapyd/scrapyd.tac"
else
echo "Unable to find scrapy.tac file"
exit 1
fi
twistd -ny "$tacfile"