pombreda / djapian

Automatically exported from code.google.com/p/djapian
Other
0 stars 0 forks source link

Make index command more friendly towards service supervisors #106

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
Right now if one wants to run Djapian index management command in the loop
for continuous index updates, it's possible to use "--daemonize" flag.

This flag tells Djapian to fork into background. It doesn't work for
certain service supervisors such as runit or daemontools as they expect
service processes to stay in the foreground.

I suggest adding another command line option to make daemonizing and
continuous looping behaviour independent.

Attached patch adds a "--loop" command which will tells "index" command to
run indefinitely. "--daemonize" flag is modified to control only the
daemonization behaviour.

Original issue reported on code.google.com by redvas...@gmail.com on 19 Feb 2010 at 1:27

Attachments:

GoogleCodeExporter commented 9 years ago
It's not a defect, but more like an "Enhancement".

Also forgot to say that attached patch is made against current svn head (r343).

Original comment by redvas...@gmail.com on 19 Feb 2010 at 1:30

GoogleCodeExporter commented 9 years ago

Original comment by daevaorn on 19 Feb 2010 at 2:29

GoogleCodeExporter commented 9 years ago

Original comment by daevaorn on 19 Feb 2010 at 2:47

GoogleCodeExporter commented 9 years ago
Fixed in r348

Original comment by daevaorn on 22 Feb 2010 at 5:24