Date: Wed, 15 May 2019 10:40:01 +0000 From: bugzilla-noreply@freebsd.org To: ports-bugs@FreeBSD.org Subject: [Bug 237909] net/kea: new rc script Message-ID: <bug-237909-7788@https.bugs.freebsd.org/bugzilla/>
next in thread | raw e-mail | index | archive | help
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.=
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?bug-237909-7788>