[kea-dev] Check that Kea has successfully started ?
Chaigneau, Nicolas
nicolas.chaigneau at capgemini.com
Thu Mar 19 16:19:31 UTC 2015
How can a script in charge of starting Kea know that the server has successfully started ?
- Checking that the process is running (ps...):
Not good enough, because the startup phase can take some time (especially when dealing with large lease files that need to be loaded).
If Kea fails to complete its initialization and exits, and the check has been done before that, then the script will not know that a problem has occurred.
- Parse the logs and wait until there is a newly added message signaling the success, for instance such as:
"DHCP4_CONFIG_COMPLETE DHCPv4 server has completed configuration"
(or the new message that will be logged when http://kea.isc.org/ticket/3755 is done)
This would work, but it looks somewhat hackish...
Do you see a better way to achieve this ?
Initially I was looking for where Kea writes its PID file. Then I realized there was no such file.
Why not ?
That would be a better way to check the process status: if it runs, and has written his PID file (and its content matches the actual process PID), then it would mean that the startup/configuration phase was successful.
Regards,
Nicolas.
This message contains information that may be privileged or confidential and is the property of the Capgemini Group. It is intended only for the person to whom it is addressed. If you are not the intended recipient, you are not authorized to read, print, retain, copy, disseminate, distribute, or use this message or any part thereof. If you receive this message in error, please notify the sender immediately and delete all copies of this message.
More information about the kea-dev
mailing list