pombreda / django-tasks

Automatically exported from code.google.com/p/django-tasks
0 stars 0 forks source link

Pidfile handling improvements #23

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
I've attached three patches which improve mainly the pidfile handling and 
Windows compatibility.

01_pidfile_setting.patch - Adds a settings variable for the pidfile (similarly 
to the one for the logfile). This enables running multiple instances of taskd 
on the same machine.

02_logfile_tmp_path.patch - Adds the same logic for determining the temp path 
for the logfile as the pidfile uses.

03_remove_stale_pidfile.patch - Removes the stale pidfile on startup. Also adds 
better support for checking whether a process exists with a given pid. This 
works on Windows too, although it requires psutil (but only on Windows).

Original issue reported on code.google.com by akos.lad...@gmail.com on 20 Nov 2014 at 9:48

Attachments: