From nobody Mon Jun 3 12:38:39 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 4VtCvN2Fbjz5MS39 for ; Mon, 03 Jun 2024 12:38:40 +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 4VtCvM697sz4bp9 for ; Mon, 3 Jun 2024 12:38:39 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1717418319; a=rsa-sha256; cv=none; b=VaMd2qSS8Lxuz5yvG7upbuFs6w5L3a+V0AFsfccGREUAdaOem9+9ssqjEuBH7MvMQrlNhy MgXCnN55Jllpv9dybOmYIaovNrRl3XBQxA0jI9xMrOFJWmEtTBCUCeXIpSM1QbevO2iqNC E48XyJ4wzXcj43V7kZV1D70vbAK6GMzlJv0EhpYmYwz9/Kt2doZRDOUsNsly7JhptEEbNP Fex5bAa9jdwpWsBK/RURoSYoq92guk/IOGKyVZmuzmwUZ5K5q33TLW7kmPigNGPmDjDR3s N8As2pFWul6niWQAfKkvMBxO00Qxuzt5oQhbqbbohqpMxOM4p3D77pWf8YSDmA== 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=1717418319; 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=G9vLF4vcQXR+baTXXxHyiVJxknjCO+jTfb+rs+yWOp8=; b=cxycNCifHd7kCkchREte2SXwOrOtwJZ28eAy+xWCa+SLgz69M+XIkaWLrzrpho0sbmepcP 3YRZrkn8Gys6AcFkQTNUWomWBAe9IGKSBzu8ck6bopwJFJLGj3kSprVdKXld1XcCR6tO2u ZQzJ++cm48OvFs1ZKGIIvBvgeIWJBpIEYsAVxYiQ+PYuaWFoxXWaeBOgzeFGmwHS+JURpS 353K+L/3DOeqDbQiGoO5vEl2wLGcn5u0E0xNpcG5TExCP/qQsLTgLPAYXAG9oTbtbXZ9hI WKJknH+LAJeW9WErlkfwDWEWE2esVPP09TlMDYoK99Xce4c5tbJfOaZeT7wUUw== 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 4VtCvM5LyRzbPB for ; Mon, 3 Jun 2024 12:38:39 +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 453Ccd9N000416 for ; Mon, 3 Jun 2024 12:38:39 GMT (envelope-from bugzilla-noreply@freebsd.org) Received: (from www@localhost) by kenobi.freebsd.org (8.15.2/8.15.2/Submit) id 453CcdE0000415 for ports-bugs@FreeBSD.org; Mon, 3 Jun 2024 12:38:39 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 279494] www/apache24: make the start script service jails ready Date: Mon, 03 Jun 2024 12:38:39 +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 Some People X-Bugzilla-Who: netchild@FreeBSD.org X-Bugzilla-Status: New X-Bugzilla-Resolution: X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: apache@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=3D279494 Bug ID: 279494 Summary: www/apache24: make the start script service jails ready Product: Ports & Packages Version: Latest Hardware: Any OS: Any Status: New Severity: Affects Some People Priority: --- Component: Individual Port(s) Assignee: apache@FreeBSD.org Reporter: netchild@FreeBSD.org Flags: maintainer-feedback?(apache@FreeBSD.org) Assignee: apache@FreeBSD.org Created attachment 251189 --> https://bugs.freebsd.org/bugzilla/attachment.cgi?id=3D251189&action= =3Dedit make the rc script service jail ready Attached is a patch which makes the rc.d script service jails ready. This i= s a new feature in -current. The setup I've chosen is to allow ipv4/ipv6 access. It does not allow to use sysv IPC in a jail. IF you want to add this possibility, the config would n= eed to be changed to "net_basic sysvipc" instead. The config can be overridden = in rc.conf. See also: https://docs.freebsd.org/en/books/handbook/jails/#service-jails https://docs.freebsd.org/en/articles/rc-scripting/#rcng-service-jails Some notes: - This is not tested. - Why are you using the special apache24_limits_* stuff? We have the name_limits stuff as part of the rc framework. - The limits part in the precmd will probably not work in a service jail, = as the start command will be executed in a jail and the precmd outside the jai= l. - While the patch is taking the profiles into account, it may fail when the jail is started, as the name of the service jail is derived from the name of the rc script (assuming "profiles" means different instances of apache are started for each profile). The tomcat/oauth2-proxy/openhab ports use a way = to have different instances of the software running in parallel which is based upon the name of the rc script (links to the original rc script). That way works well with service jails. --=20 You are receiving this mail because: You are the assignee for the bug.=