Opened 5 months ago

Closed 5 months ago

#18951 closed defect (fixed)

kea systemd unit does not work

Reported by: Xi Ruoyao Owned by: pierre
Priority: normal Milestone: 12.1
Component: BOOK Version: systemd
Severity: normal Keywords:
Cc:

Description

  1. The book mentions "make install-kea-dhcpd", but the systemd units Makefile only has "install-kea".
  2. The .service file lacks RuntimeDirectory=kea, causing the service fail to start.
  3. The .service file lacks Type=forking and PIDFile=.... It uses RemainAfterExit=true instead but this is not really correct. For example, if someone uses the kill command to kill the kea server process, systemd will fail to detect this and report the service still "running".

Change History (6)

comment:1 by pierre, 5 months ago

After some tests, it seems jhalfs works ok for this unit, but, the make target is wrong in the book. Will change it.

in reply to:  1 comment:2 by pierre, 5 months ago

Replying to pierre:

After some tests, it seems jhalfs works ok for this unit, but, the make target is wrong in the book. Will change it.

Actually, the book shouldn't be changed, because the target for sysv bootscripts is install-kea-dhcpd, and it is better to have only one instruction common for both revisions. Since the systemd-units tarball has to be changed anyway, it is better to change the target in the systemd-units tarball.

comment:3 by pierre, 5 months ago

I'm not a systemd user, but I guess this part of the doc might be useful...

comment:5 by pierre, 5 months ago

Owner: changed from blfs-book to pierre
Status: newassigned

comment:6 by pierre, 5 months ago

Resolution: fixed
Status: assignedclosed

Using https://gist.github.com/Skywalker-11/29ab856ed3c88f0eadc6e833f32fa78a and editing for our layout + adding RuntimeDirectory=kea allows the daemon to be started by systemd. Fixed at commit 6e841ea in systemd-units repository. Text adjustments will be done as part of updating kea (#18953).

Note: See TracTickets for help on using tickets.