From owner-freebsd-ports-bugs@freebsd.org Wed May 15 10:40:04 2019 Return-Path: Delivered-To: freebsd-ports-bugs@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 43076158CC15 for ; Wed, 15 May 2019 10:40:04 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from mailman.ysv.freebsd.org (mailman.ysv.freebsd.org [IPv6:2001:1900:2254:206a::50:5]) by mx1.freebsd.org (Postfix) with ESMTP id CC08A85DA8 for ; Wed, 15 May 2019 10:40:03 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: by mailman.ysv.freebsd.org (Postfix) id 8E735158CC13; Wed, 15 May 2019 10:40:03 +0000 (UTC) Delivered-To: ports-bugs@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 6C23C158CC12 for ; Wed, 15 May 2019 10:40:03 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from mxrelay.ysv.freebsd.org (mxrelay.ysv.freebsd.org [IPv6:2001:1900:2254:206a::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) server-signature RSA-PSS (4096 bits) client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.ysv.freebsd.org", Issuer "Let's Encrypt Authority X3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 0B1CD85DA4 for ; Wed, 15 May 2019 10:40:03 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from kenobi.freebsd.org (kenobi.freebsd.org [IPv6:2001:1900:2254:206a::16:76]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mxrelay.ysv.freebsd.org (Postfix) with ESMTPS id 497EF9E7 for ; Wed, 15 May 2019 10:40:02 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from kenobi.freebsd.org ([127.0.1.118]) by kenobi.freebsd.org (8.15.2/8.15.2) with ESMTP id x4FAe2n0054886 for ; Wed, 15 May 2019 10:40:02 GMT (envelope-from bugzilla-noreply@freebsd.org) Received: (from www@localhost) by kenobi.freebsd.org (8.15.2/8.15.2/Submit) id x4FAe2ua054884 for ports-bugs@FreeBSD.org; Wed, 15 May 2019 10:40:02 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 237909] net/kea: new rc script Date: Wed, 15 May 2019 10:40:01 +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: pmfoss@gmx.de X-Bugzilla-Status: New X-Bugzilla-Resolution: X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: hrs@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 MIME-Version: 1.0 X-BeenThere: freebsd-ports-bugs@freebsd.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Ports bug reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 15 May 2019 10:40:04 -0000 https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D237909 Bug ID: 237909 Summary: net/kea: new rc script Product: Ports & Packages Version: Latest Hardware: Any OS: Any Status: New Severity: Affects Only Me Priority: --- Component: Individual Port(s) Assignee: hrs@FreeBSD.org Reporter: pmfoss@gmx.de Assignee: hrs@FreeBSD.org Flags: maintainer-feedback?(hrs@FreeBSD.org) Created attachment 204390 --> https://bugs.freebsd.org/bugzilla/attachment.cgi?id=3D204390&action= =3Dedit compressed archive of the modified net/kea port To whom it may concern, I have a question concerning the Kea DHCP Server package of the FreeBSD repository. But at first I want to describe what I want to do, what problem= s I have and how I have solved them. I want to provide the Kea DHCP service within a jail container. Furthermore= , I want to manage this service with Ansible. During the installation and configuration of that service, I noticed two problems with the rc script of Kea. The first problem relates to the use of Kea within a jail container. The us= age of Kea within a jail container is easily possible and it is also described = in the Kea Documentation since Kea version 1.4 (https://ftp.isc.org/isc/Kea/cur/doc/Kea-guide.pdf, page 39). The problem is now that the keyword "nojail" in Kea's rc script prevents the service from starting automatically when the jail container starts. The second problem has to do with the invocation of rc script. This current script uses the keactrl tool to start one or more of the services that are provided by the Kea suite and all information on which services have to be started can be found in the keactrl.conf file. The problem is that the returncode of keactrl is usually 0. The same is true if you want to check t= he state of a single service of this suite. Normally, the service(8) command returns a 0 if a service is running and 1 if the service is not running. In= the case of the Kea's rc script the keactrl displays a conclusion of all servic= es states on stdout and returns always 0. Especially configuration management systems, in my case Ansible, and other programs or scripts use the returnco= de of the service(8) command to determinate the state of a service. For example Ansible checks the state of a service before it starts or stops this. So it= is not possible to start a Kea service as usual. To solve these problems, I developed a new rc script for the Kea suite which can be used within a jail container and controls each service separately. T= he control is done by using the name of the invoked rc script, so that all Kea services only have to be a soft link to this new rc script. A compressed archive of the modified net/kea port can be found in the attachment. And now back to my question. Is it possible to replace the current Kea rc script in the port source with the rc script I developed or add it to the p= ort source? I thank you in advance for your answer. Best regards Martin --=20 You are receiving this mail because: You are the assignee for the bug.=