[Bug 281005] www/py-gunicorn: have daemon(8) record main worker process in pidfile
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Fri, 23 Aug 2024 05:07:58 UTC
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=281005 Bug ID: 281005 Summary: www/py-gunicorn: have daemon(8) record main worker process in pidfile Product: Ports & Packages Version: Latest Hardware: Any OS: Any Status: New Severity: Affects Only Me Priority: --- Component: Individual Port(s) Assignee: bofh@freebsd.org Reporter: pete@nomadlogic.org Flags: maintainer-feedback?(bofh@freebsd.org) Assignee: bofh@freebsd.org Created attachment 253029 --> https://bugs.freebsd.org/bugzilla/attachment.cgi?id=253029&action=edit add -p to daemon to store child process pid Currently the installed gunicorn rc.d script records the PID of the supervisor process to /var/run/gunicorn. This is done by passing "-P" via daemon(8). I am proposing we also record the primary gunicorn worker process in /var/run as well, this will enable better integration with tools like newsyslog(8). For example gunicorn accepts a SIG1 signal to the main worker process to close and reopen logfiles after rotation to the main worker as well as child process. By also passing "-p" to daemon we can then have newsyslog get the appropriate pid to sent a SIG1 to. Here are the docs on the signals gunicorn accepts, as there are other interesting usecases this would enable as well: https://docs.gunicorn.org/en/stable/signals.html -- You are receiving this mail because: You are the assignee for the bug.