From 5de5cac43e20be4a1fa18cd99f7296c6471229b2 Mon Sep 17 00:00:00 2001 From: Pablo Hoffman Date: Mon, 20 Jun 2011 10:48:34 -0300 Subject: [PATCH] added quick script script to launch scrapyd --- bin/scrapyd | 14 ++++++++++++++ 1 file changed, 14 insertions(+) create mode 100755 bin/scrapyd diff --git a/bin/scrapyd b/bin/scrapyd new file mode 100755 index 000000000..b8a28ebb8 --- /dev/null +++ b/bin/scrapyd @@ -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"