Opened 3 years ago

Last modified 11 months ago

#3753 new defect

Kea process should daemonize

Reported by: nicolas.chaigneau Owned by:
Priority: medium Milestone: Outstanding Tasks
Component: dhcp Version: git
Keywords: Cc:
CVSS Scoring: Parent Tickets:
Sensitive: no Defect Severity: N/A
Sub-Project: DHCP Feature Depending on Ticket:
Estimated Difficulty: 0 Add Hours to Ticket: 0
Total Hours: 0 Internal?: no

Description (last modified by tomek)

When being started in non-debug mode, the process kea-dhcp4 does not daemonize itself:
One have to terminate the command line with a '&', otherwise the process stops when the terminal receives a Control-C.

(Apparently Kea doesn't stop if the terminal is closed, with or without '&'.)


Change History (10)

comment:1 Changed 3 years ago by marcin

Although I don't object to this idea personally, I should point out that there is keactrl tool which is designed to start Kea daemons in background and control sending signals to reconfigure and terminate. So it may be good to be able to daemonize an individual process but if you want to run 3 processes together: DHCPv4, DHCPv6 and DDNS it is basically better to have a script that does it.

comment:2 Changed 3 years ago by nicolas.chaigneau

keactrl is nice, but for a setup with only a DHCPv4 server, I see it as an unnecessary layer.

Moreso (correct me if I'm wrong), I think keactrl is not suitable for a cluster integration.
The cluster requires standard linux service scripts for each resource, which must provide start, stop, and status commands, and return normalized codes.

keactrl doesn't do that. For example, the "status" command returns 0 whether kea-dhcp4 is running or not.

comment:3 Changed 3 years ago by fdupont

keactrl is not a script even I am not against the idea (but in another ticket) we provide a script example.
PS: please suggest in this other ticket for which system you'd like to get the script (system V, Solaris, system, etc).

comment:4 Changed 3 years ago by hschempf

  • Milestone changed from Kea-proposed to Kea1.0

comment:5 Changed 2 years ago by stephen

  • Milestone changed from Kea1.0 to DHCP Outstanding Tasks

Per Kea planning meeting in October, remove from 1.0.

comment:6 Changed 2 years ago by tomek

  • Milestone changed from DHCP Outstanding Tasks to Outstanding Tasks

Milestone renamed

comment:7 Changed 17 months ago by tomek

  • Description modified (diff)
  • Milestone changed from Outstanding Tasks to Kea1.2

comment:8 Changed 16 months ago by tomek

  • Component changed from Unclassified to dhcp

comment:9 Changed 13 months ago by fdupont

Note we got the opposite request for inclusion in docker. So IMHO the best is to use a script...

comment:10 Changed 11 months ago by hschempf

  • Milestone changed from Kea1.2 to Outstanding Tasks

16 Feb: per team discussion, move from 1.2 to outstanding

Note: See TracTickets for help on using tickets.