vimagick / dockerfiles

:whale: A curated list of delicious docker recipes 🇺🇦🇮🇱 (Let's Fight Against Dictatorship)
https://hub.docker.com/u/vimagick/
3.15k stars 794 forks source link

restart scrapyd service after changing scrapyd.conf #51

Open eLRuLL opened 7 years ago

eLRuLL commented 7 years ago

it would be really good if there would be a simple way to restart the scrapyd service after the configuration file scrapyd.conf is changed, or even in any circumstance without killing the current running scrapy jobs.

When installed in debian or ubuntu with apt-get you can normally use it a service with service scrapyd restart, which is very handy in these situations.

Could you please share how would you restart this on your docker configuration? I would really appreciate it.

Currently I am stopping the docker instance and starting (up) it again, which kills the current jobs :(

vimagick commented 7 years ago

You can run docker restart or docker-compose restart. I haven't found a way to restart without killing running jobs.

Do you mean: service scrapyd restart can keep old jobs running? I didn't notice that before.