From nobody Thu Mar 09 22:13:09 2023 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 4PXk2s6cQRz3xRhV for ; Thu, 9 Mar 2023 22:13:09 +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 "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4PXk2s5Wkgz3hDZ for ; Thu, 9 Mar 2023 22:13:09 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1678399989; 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=Y8pEYw3KaVs/FeFYJYQLWcG52eF7SubbD0IbT9zlgKI=; b=vgS8++DUdED2peerqOiW4Z8g5P8QULXWVxaeqDQNBZU3CsHeZTsv83ACqIECS/QaLpabA3 RZR0j2u4gaAFEBJYo9ZU55lUYBCQwTWIrbTqs1gg56YSF53Q5eaA4xXOvgLsM1G5WDn22I K94S8DDHCSnO7e57O9iUMgrfDED4bSnTklo6L4NB4OHCgT9ft+8dwdrhxjJSNmTAbXPGO5 jAJmwq8VRAtnp5qTEVNSt2RkBI6b7h7AlEmV6zDlFuXth2QUjXqpw/Ay/zykrQ1StrTWDv bdkmoFfK/t3UGpkYe1N+1j92bXKXrwjpNh6anbEaizeUcQtRP9F7/Ev7Pt0/6Q== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1678399989; a=rsa-sha256; cv=none; b=rE7cpZDdjcHNDMWDfPvME8L8r2/Xp/wz6OaylUJFwfsFUoPQKGUIWfhLqtBqK3XaCCweXY OjZ8STKsiOi8w6HnhUDhg3M+R6aaCpXNOawXoENdhSDF2Zn4gy+1UnnqDCUU5BRsT8hAPZ 10JMZnj1Cuq+Hqm6g4UTboG8JT24OCS5ENdMTAL64ORAs8TjuLy3/AwfOWIy9e9AK10jlD bS72R+UxK1j17iwm7NBqbvXibYM+d2iTx7iINhb6GVYQ4cIOhSXDImPeaqSv7ZKSE7JB6A izm1L8/SqL7irzaWgZNpyOwsc3B7w/uKmUR4+zJ1Mh7dyHbny0of+jBEEfdjSQ== 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 4PXk2s4bW7zPfx for ; Thu, 9 Mar 2023 22:13:09 +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 329MD9mA062560 for ; Thu, 9 Mar 2023 22:13:09 GMT (envelope-from bugzilla-noreply@freebsd.org) Received: (from www@localhost) by kenobi.freebsd.org (8.15.2/8.15.2/Submit) id 329MD9HS062559 for ports-bugs@FreeBSD.org; Thu, 9 Mar 2023 22:13:09 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 270075] www/nginx: automatically create log dir Date: Thu, 09 Mar 2023 22:13:09 +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: pat@patmaddox.com X-Bugzilla-Status: New X-Bugzilla-Resolution: X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: joneum@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: Sender: owner-freebsd-ports-bugs@freebsd.org X-BeenThere: freebsd-ports-bugs@freebsd.org MIME-Version: 1.0 X-ThisMailContainsUnwantedMimeParts: N https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D270075 Bug ID: 270075 Summary: www/nginx: automatically create log dir Product: Ports & Packages Version: Latest Hardware: Any OS: Any Status: New Severity: Affects Only Me Priority: --- Component: Individual Port(s) Assignee: joneum@FreeBSD.org Reporter: pat@patmaddox.com Flags: maintainer-feedback?(joneum@FreeBSD.org) Assignee: joneum@FreeBSD.org Created attachment 240710 --> https://bugs.freebsd.org/bugzilla/attachment.cgi?id=3D240710&action= =3Dedit patch to automatically create log dir Currently, if you `rm -rf /var/log/nginx && service nginx start` it will fa= il with: Performing sanity check on nginx configuration: nginx: [alert] could not open error log file: open() "/var/log/nginx/error.log" failed (2: No such file or directory) nginx: the configuration file /usr/local/etc/nginx/nginx.conf syntax is= ok 2023/03/09 14:04:33 [emerg] 11385#110709: open() "/var/log/nginx/access.log" failed (2: No such file or directory) nginx: configuration file /usr/local/etc/nginx/nginx.conf test failed Starting nginx. nginx: [alert] could not open error log file: open() "/var/log/nginx/error.log" failed (2: No such file or directory) 2023/03/09 14:04:33 [emerg] 11564#110709: open() "/var/log/nginx/access.log" failed (2: No such file or directory) /usr/local/etc/rc.d/nginx: WARNING: failed to start nginx This patch automatically creates the log dir before nginx runs. --=20 You are receiving this mail because: You are the assignee for the bug.=