<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-2022-jp">
<style type="text/css" style="display:none;"> P {margin-top:0;margin-bottom:0;} </style>
</head>
<body dir="ltr">
<div class="elementToProof" style="font-family: Aptos, Aptos_EmbeddedFont, Aptos_MSFontService, Calibri, Helvetica, sans-serif; font-size: 11pt; color: rgb(0, 0, 0);">
Hello all,</div>
<div class="elementToProof" style="font-family: Aptos, Aptos_EmbeddedFont, Aptos_MSFontService, Calibri, Helvetica, sans-serif; font-size: 11pt; color: rgb(0, 0, 0);">
<br>
</div>
<div class="elementToProof" style="font-family: Aptos, Aptos_EmbeddedFont, Aptos_MSFontService, Calibri, Helvetica, sans-serif; font-size: 11pt; color: rgb(0, 0, 0);">
We're trying to create a custom configuration file for the kea-dhcp4-server in our deployment. Currently what I've tried is a simple systemd dropin: </div>
<div class="elementToProof" style="font-family: Aptos, Aptos_EmbeddedFont, Aptos_MSFontService, Calibri, Helvetica, sans-serif; font-size: 11pt; color: rgb(0, 0, 0);">
<br>
</div>
<div class="elementToProof" style="font-family: Aptos, Aptos_EmbeddedFont, Aptos_MSFontService, Calibri, Helvetica, sans-serif; font-size: 11pt; color: rgb(0, 0, 0);">
$ cat /etc/systemd/system/kea-dhcp4-server.service.d/override.conf </div>
<div class="elementToProof" style="font-family: Aptos, Aptos_EmbeddedFont, Aptos_MSFontService, Calibri, Helvetica, sans-serif; font-size: 11pt; color: rgb(0, 0, 0);">
[Service]</div>
<div style="font-family: Aptos, Aptos_EmbeddedFont, Aptos_MSFontService, Calibri, Helvetica, sans-serif; font-size: 11pt; color: rgb(0, 0, 0);">
ExecStart=</div>
<div class="elementToProof" style="font-family: Aptos, Aptos_EmbeddedFont, Aptos_MSFontService, Calibri, Helvetica, sans-serif; font-size: 11pt; color: rgb(0, 0, 0);">
ExecStart=/usr/sbin/kea-dhcp4 -c /etc/kea/kea-dhcp4-gw.conf </div>
<div class="elementToProof" style="font-family: Aptos, Aptos_EmbeddedFont, Aptos_MSFontService, Calibri, Helvetica, sans-serif; font-size: 11pt; color: rgb(0, 0, 0);">
<br>
</div>
<div class="elementToProof" style="font-family: Aptos, Aptos_EmbeddedFont, Aptos_MSFontService, Calibri, Helvetica, sans-serif; font-size: 11pt; color: rgb(0, 0, 0);">
When I try using that, I get failure to create the PID file:</div>
<div class="elementToProof" style="font-family: Aptos, Aptos_EmbeddedFont, Aptos_MSFontService, Calibri, Helvetica, sans-serif; font-size: 11pt; color: rgb(0, 0, 0);">
<br>
</div>
<div class="elementToProof" style="font-family: Aptos, Aptos_EmbeddedFont, Aptos_MSFontService, Calibri, Helvetica, sans-serif; font-size: 11pt; color: rgb(0, 0, 0);">
$ sudo systemctl daemon-reload</div>
<div class="elementToProof" style="font-family: Aptos, Aptos_EmbeddedFont, Aptos_MSFontService, Calibri, Helvetica, sans-serif; font-size: 11pt; color: rgb(0, 0, 0);">
$ sudo systemctl restart kea-dhcp4-server</div>
<div class="elementToProof" style="font-family: Aptos, Aptos_EmbeddedFont, Aptos_MSFontService, Calibri, Helvetica, sans-serif; font-size: 11pt; color: rgb(0, 0, 0);">
$ sudo systemctl status kea-dhcp4-server</div>
<div class="elementToProof" style="font-family: Aptos, Aptos_EmbeddedFont, Aptos_MSFontService, Calibri, Helvetica, sans-serif; font-size: 11pt; color: rgb(0, 0, 0);">
× kea-dhcp4-server.service - Kea IPv4 DHCP daemon</div>
<div style="font-family: Aptos, Aptos_EmbeddedFont, Aptos_MSFontService, Calibri, Helvetica, sans-serif; font-size: 11pt; color: rgb(0, 0, 0);">
Loaded: loaded (/usr/lib/systemd/system/kea-dhcp4-server.service; enabled; preset: enabled)</div>
<div style="font-family: Aptos, Aptos_EmbeddedFont, Aptos_MSFontService, Calibri, Helvetica, sans-serif; font-size: 11pt; color: rgb(0, 0, 0);">
Drop-In: /etc/systemd/system/kea-dhcp4-server.service.d</div>
<div style="font-family: Aptos, Aptos_EmbeddedFont, Aptos_MSFontService, Calibri, Helvetica, sans-serif; font-size: 11pt; color: rgb(0, 0, 0);">
└瘢雹─override.conf</div>
<div style="font-family: Aptos, Aptos_EmbeddedFont, Aptos_MSFontService, Calibri, Helvetica, sans-serif; font-size: 11pt; color: rgb(0, 0, 0);">
Active: failed (Result: exit-code) since Thu 2025-02-13 18:13:21 GMT; 7s ago</div>
<div style="font-family: Aptos, Aptos_EmbeddedFont, Aptos_MSFontService, Calibri, Helvetica, sans-serif; font-size: 11pt; color: rgb(0, 0, 0);">
Duration: 25ms</div>
<div style="font-family: Aptos, Aptos_EmbeddedFont, Aptos_MSFontService, Calibri, Helvetica, sans-serif; font-size: 11pt; color: rgb(0, 0, 0);">
Docs: man:kea-dhcp4(8)</div>
<div style="font-family: Aptos, Aptos_EmbeddedFont, Aptos_MSFontService, Calibri, Helvetica, sans-serif; font-size: 11pt; color: rgb(0, 0, 0);">
Process: 448823 ExecStart=/usr/sbin/kea-dhcp4 -c /etc/kea/kea-dhcp4-gw.conf (code=exited, status=1/FAILURE)</div>
<div style="font-family: Aptos, Aptos_EmbeddedFont, Aptos_MSFontService, Calibri, Helvetica, sans-serif; font-size: 11pt; color: rgb(0, 0, 0);">
Main PID: 448823 (code=exited, status=1/FAILURE)</div>
<div style="font-family: Aptos, Aptos_EmbeddedFont, Aptos_MSFontService, Calibri, Helvetica, sans-serif; font-size: 11pt; color: rgb(0, 0, 0);">
CPU: 24ms</div>
<div style="font-family: Aptos, Aptos_EmbeddedFont, Aptos_MSFontService, Calibri, Helvetica, sans-serif; font-size: 11pt; color: rgb(0, 0, 0);">
<br>
</div>
<div class="elementToProof" style="font-family: Aptos, Aptos_EmbeddedFont, Aptos_MSFontService, Calibri, Helvetica, sans-serif; font-size: 11pt; color: rgb(0, 0, 0);">
Feb 13 18:13:21 71077345 systemd[1]: Started kea-dhcp4-server.service - Kea IPv4 DHCP daemon.</div>
<div class="elementToProof" style="font-family: Aptos, Aptos_EmbeddedFont, Aptos_MSFontService, Calibri, Helvetica, sans-serif; font-size: 11pt; color: rgb(0, 0, 0);">
Feb 13 18:13:21 71077345 kea-dhcp4[448823]: 2025-02-13 18:13:21.928 INFO [kea-dhcp4.dhcp4/448823.134556786268608] DHCP4_STARTING Kea DHCPv4 server version 2.4.1 (stable) starting</div>
<div class="elementToProof" style="font-family: Aptos, Aptos_EmbeddedFont, Aptos_MSFontService, Calibri, Helvetica, sans-serif; font-size: 11pt; color: rgb(0, 0, 0);">
Feb 13 18:13:21 71077345 kea-dhcp4[448823]: kea-dhcp4: Fatal error during start up: Unable to open PID file '/run/kea/kea-dhcp4-gw.kea-dhcp4.pid' for write</div>
<div class="elementToProof" style="font-family: Aptos, Aptos_EmbeddedFont, Aptos_MSFontService, Calibri, Helvetica, sans-serif; font-size: 11pt; color: rgb(0, 0, 0);">
Feb 13 18:13:21 71077345 kea-dhcp4[448823]: 2025-02-13 18:13:21.928 FATAL [kea-dhcp4.dhcp4/448823.134556786268608] DHCP4_SERVER_FAILED server failed: Unable to open PID file '/run/kea/kea-dhcp4-gw.kea-dhcp4.pid' for write</div>
<div class="elementToProof" style="font-family: Aptos, Aptos_EmbeddedFont, Aptos_MSFontService, Calibri, Helvetica, sans-serif; font-size: 11pt; color: rgb(0, 0, 0);">
Feb 13 18:13:21 71077345 systemd[1]: kea-dhcp4-server.service: Main process exited, code=exited, status=1/FAILURE</div>
<div class="elementToProof" style="font-family: Aptos, Aptos_EmbeddedFont, Aptos_MSFontService, Calibri, Helvetica, sans-serif; font-size: 11pt; color: rgb(0, 0, 0);">
Feb 13 18:13:21 71077345 systemd[1]: kea-dhcp4-server.service: Failed with result 'exit-code'.</div>
<div class="elementToProof" style="font-family: Aptos, Aptos_EmbeddedFont, Aptos_MSFontService, Calibri, Helvetica, sans-serif; font-size: 11pt; color: rgb(0, 0, 0);">
<br>
</div>
<div class="elementToProof" style="font-family: Aptos, Aptos_EmbeddedFont, Aptos_MSFontService, Calibri, Helvetica, sans-serif; font-size: 11pt; color: rgb(0, 0, 0);">
<br>
</div>
<div class="elementToProof" style="font-family: Aptos, Aptos_EmbeddedFont, Aptos_MSFontService, Calibri, Helvetica, sans-serif; font-size: 11pt; color: rgb(0, 0, 0);">
Everything I've tried in an effort to switch the server to a custom config file has failed in similar ways. Clearly I'm missing something in the systemd service config... any help here is appreciated.</div>
<div class="elementToProof" id="Signature">
<p><span style="font-family: Arial, sans-serif; font-size: 10pt; color: rgb(89, 89, 89);"><b> </b></span></p>
<p><span style="font-family: Arial, sans-serif; font-size: 10pt; color: rgb(89, 89, 89);"><b>Scott LaCroix</b></span></p>
<p><span style="font-family: Arial, sans-serif; font-size: 10pt; color: rgb(89, 89, 89);">Software Engineer</span></p>
<p><span style="font-family: Arial, sans-serif; font-size: 10pt; color: rgb(89, 89, 89);">Building Technologies & Solutions </span></p>
<p><span style="font-family: Arial, sans-serif; font-size: 10pt; color: rgb(89, 89, 89);">Johnson Controls</span></p>
<p><span style="font-family: Arial, sans-serif; font-size: 10pt; color: rgb(95, 99, 105);"> </span></p>
<p><span style="font-family: Arial, sans-serif; font-size: 10pt; color: rgb(89, 89, 89);"><a href="mailto:scott.lacroix@jci.com" id="OWA2655c944-83b8-4c89-b326-1a206177e4a7" class="OWAAutoLink" style="margin-top: 0px; margin-bottom: 0px;">scott.lacroix@jci.com</a></span></p>
<p><span style="font-family: Arial, sans-serif; font-size: 10pt;"><a href="http://www.johnsoncontrols.com/" id="OWA10ba9249-1599-5e6a-eb1a-f73878feb46d" class="OWAAutoLink" style="margin-top: 0px; margin-bottom: 0px;">www.johnsoncontrols.com</a></span></p>
<p><span style="font-family: Arial, sans-serif; font-size: 10pt;"><a href="http://www.americandynamics.net/" id="OWA3b1a5590-9245-6973-97e2-6a3270b20920" class="OWAAutoLink" style="margin-top: 0px; margin-bottom: 0px;">www.americandynamics.net</a></span></p>
<p><span style="font-family: Arial, sans-serif; font-size: 10pt; color: rgb(95, 99, 105);"><br>
Johnson Controls<br>
6 Technology Park Drive <br>
Westford, MA 01886<br>
USA<br>
<br>
</span><span style="font-family: Arial, sans-serif; font-size: 8pt; color: rgb(95, 99, 105);">THIS MESSAGE MAY CONTAIN INFORMATION THAT IS PRIVILEGED AND CONFIDENTIAL. The information contained in, or attached to, this message is intended solely for the use
of the specific person(s) named above. If you are not the intended recipient then you have received this communication in error and are prohibited from review, retransmission, taking any action in reliance upon, sharing the content of, disseminating or copying
this message and any of the attachments in any way. If you have received this communication in error, please contact the sender immediately and promptly delete this message from all types of media and devices. Thank you.</span></p>
<p> </p>
</div>
</body>
</html>