mirror of
https://github.com/scrapy/scrapy.git
synced 2025-02-26 05:43:52 +00:00
- scrapy: which provides only the library and scrapy-ctl command - scrapy-service: which provides the service, upstart script, system user, etc This allows a clean install of just the library for those which are not interested in the Scrapy service. --HG-- rename : debian/scrapy.dirs => debian/scrapy-service.dirs rename : debian/scrapy.install => debian/scrapy-service.install rename : debian/scrapy.postinst => debian/scrapy-service.postinst rename : debian/scrapy.postrm => debian/scrapy-service.postrm rename : debian/scrapy.upstart => debian/scrapy-service.upstart rename : debian/conf/service_conf.py => debian/service_conf.py
13 lines
348 B
Plaintext
13 lines
348 B
Plaintext
# Scrapy service
|
|
|
|
start on runlevel [2345]
|
|
stop on runlevel [06]
|
|
|
|
script
|
|
[ -r /etc/default/scrapy-service ] && . /etc/default/scrapy-service
|
|
exec twistd -ny /usr/share/scrapy/scrapy.tac \
|
|
-u scrapy -g nogroup \
|
|
-l /var/log/scrapy/service.log \
|
|
--pidfile /var/run/scrapy/scrapy.pid
|
|
end script
|