[PATCH] execute program on events

Måns Rullgård mru at inprovide.com
Tue Mar 21 23:09:13 UTC 2006


Kevin Eustice <kfe at cs.ucla.edu> writes:

>> On Tuesday 21 March 2006 14:05, Måns Rullgård wrote:
>> > Any comments at all on this?
>> 
>> Historically, the reason why the DHCP server doesn't do this is
>> because it's not asynchronous, so if the command hangs, the DHCP
>> server hangs.
>> 
>
> It seems like the right way to do what you want to do here is not to
> execute a specified program, but rather generate an event (maybe to
> ACPI?) that an external process can use to trigger some execution.

The program that gets run can generate any type of event that is
suitable for the situation.  That is more flexible than the dhcp
server generating some specific event.

ACPI only exists on PCs, and the dhcp server runs on a lot of other
platforms.

> Currently, I do something similar through the use of a log watcher
> that triggers on succesful DHCP sessions observed in the log file.

That may be sufficient in some cases.  In my situation it would be
less than ideal.

-- 
Måns Rullgård
mru at inprovide.com


More information about the dhcp-hackers mailing list