Fresque and Monit
asim-bashir-confiz opened this issue · 4 comments
I am using Fresque for my PHP project background jobs. I am monitoring Apache, Mysql and other important processes using Monit . I also want to add Fresque processes in Monit but I am unable to find PID files for worker processes. I have reviewed PHP-Resque library code and it seems that it does support and generate PID files for worker processes in /var/run/resque/ directory. Please guide me how I can achieve it using Fresque.
What are you expecting from these PID files ? That they're named after the process ID ? Or their content is a string representing the process ID ?
Currently, Fresque is storing the PID files in fresque/tmp, as it uses the PID files only internally. It can be changed in the configuration file with tmpdir
, under the Fresque section.
Currently, the PID files contains the string representation of the process ID, but they're are not named after the process ID. I didn't though about compatibility with other tools, maybe you can enlighten me about how monit use the PID files.
I have installed Fresque using Composer but I don't see any "tmpdir " option in fresque.ini file
Ah sorry, it's available only on the master, it's not tagged yet
It's now available in the 1.2.3 tag