From nobody Fri Aug 23 05:07:58 2024 X-Original-To: ports-bugs@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 4Wqp3z2RP1z5VJ8F for ; Fri, 23 Aug 2024 05:07:59 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "R11" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4Wqp3z1PGHz43ys for ; Fri, 23 Aug 2024 05:07:59 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1724389679; a=rsa-sha256; cv=none; b=JBVjq29R+fHkz3rfL5x5oAt+aUXhrB6Tu7hVtMkghezsdayYuhw/XSaJkNThJ5LMkvqj1p qwDgcKC5WFEwkDVo2WwH57Rtc5eugHViv7NmE0e+Xvc5atWvbnwBYmgrgC79Gd6UChoU8q rs6TFYi+KY/9uKksAnwwwNpdT2EAU2vNT55gYI/L6MNcT7Dk59toIRE6OhTSktEC9+34PU h8L22RWuF9zd44TdQ6HaFbKiqmbwn/WLCC1D4VkXgq9fQPPFalhs7LuRCR50PMR9I2XbiE dHZk8ZS8z0ujKagJznm3/AilTSTBunSTnY+t8a5HbnDrAb79F1+Fym1w1XLZ8A== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1724389679; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=VTwIIDdgGNPBk4dpTyJe00ZopHM+ZiL86ZgPPuhPrh4=; b=sXhC3OT3aHTVVvJ2O/QEcOtMunHLLDs+AbVXqsld7fN9GM+Ua4Zwkz7LONz/2t8/4JzPq1 2giNBSAUJg8ht8IfKNLuvFKKEM4493amiauAH2+fok6K3ckuAnrnxvsj5AN2LziY0OXbmY Fi1mWK4l5EUpFRqaf5DzeSAtlOjnTWeaE4poIloCY9frWz59qAe5+xb4ErUGz8I0b8svc3 EpGbvXElLyy7TwQeXN+XjvOPQMQ+hiq5PKlj1sYrkDIZbciEZvqQiNretIQOEWCOvIA7ww BMqU3SflIShbEV1Dznm8j7DpxLBWYbTn5eDYZ8c5G1sNwr7IvBVcwzyR2A9s6Q== Received: from kenobi.freebsd.org (kenobi.freebsd.org [IPv6:2610:1c1:1:606c::50:1d]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id 4Wqp3z0z2Rzy1r for ; Fri, 23 Aug 2024 05:07:59 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from kenobi.freebsd.org ([127.0.1.5]) by kenobi.freebsd.org (8.15.2/8.15.2) with ESMTP id 47N57xoa005412 for ; Fri, 23 Aug 2024 05:07:59 GMT (envelope-from bugzilla-noreply@freebsd.org) Received: (from www@localhost) by kenobi.freebsd.org (8.15.2/8.15.2/Submit) id 47N57xwt005410 for ports-bugs@FreeBSD.org; Fri, 23 Aug 2024 05:07:59 GMT (envelope-from bugzilla-noreply@freebsd.org) X-Authentication-Warning: kenobi.freebsd.org: www set sender to bugzilla-noreply@freebsd.org using -f From: bugzilla-noreply@freebsd.org To: ports-bugs@FreeBSD.org Subject: [Bug 281005] www/py-gunicorn: have daemon(8) record main worker process in pidfile Date: Fri, 23 Aug 2024 05:07:58 +0000 X-Bugzilla-Reason: AssignedTo X-Bugzilla-Type: new X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: Ports & Packages X-Bugzilla-Component: Individual Port(s) X-Bugzilla-Version: Latest X-Bugzilla-Keywords: X-Bugzilla-Severity: Affects Only Me X-Bugzilla-Who: pete@nomadlogic.org X-Bugzilla-Status: New X-Bugzilla-Resolution: X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: bofh@freebsd.org X-Bugzilla-Flags: maintainer-feedback? X-Bugzilla-Changed-Fields: bug_id short_desc product version rep_platform op_sys bug_status bug_severity priority component assigned_to reporter flagtypes.name attachments.created Message-ID: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: https://bugs.freebsd.org/bugzilla/ Auto-Submitted: auto-generated List-Id: Ports bug reports List-Archive: https://lists.freebsd.org/archives/freebsd-ports-bugs List-Help: List-Post: List-Subscribe: List-Unsubscribe: X-BeenThere: freebsd-ports-bugs@freebsd.org Sender: owner-freebsd-ports-bugs@FreeBSD.org MIME-Version: 1.0 https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D281005 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=3D253029&action= =3Dedit add -p to daemon to store child process pid Currently the installed gunicorn rc.d script records the PID of the supervi= sor process to /var/run/gunicorn. This is done by passing "-P" via daemon(8).= =20=20 I am proposing we also record the primary gunicorn worker process in /var/r= un 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 --=20 You are receiving this mail because: You are the assignee for the bug.=