Best way to get notifications from dhclient?
-
This is a new area for me and I'm still hacking my way through it, so I would greatly appreciate any insight or a push in the right direction. I have a process that needs to be notified when dhclient (which is launched by an unrelated process in another application) finishes configuring the network device and fetches the IP address and all. Is there a way to hook into dhclient for the first process to get notification events from dhclient? I'm currently considering doing it from the dhclient-exit-hooks script that is invoked on dhclient exit, but I am curious if OMAPI can be used instead? The man-page for dhclient says such control of dhclient is possible through the use of OMAPI, but the man-pages for OMAPI and and dhcpctl claim it's used to get info from the DHCP server only...