sargon / ddhcpd

A distributed DHCP Daemon
GNU General Public License v3.0
31 stars 11 forks source link

Fork a hook process, instead of forking every time. #41

Open sargon opened 5 years ago

sargon commented 5 years ago

We could fork a process early and then pass events by a unnamed socket. This would solve the issue with multiple hook script instances, forking on every event and prevent and resources over consumption by an event spike.

christf commented 5 years ago

another way would be starting one process like run-parts that runs all the hooks.

EDIT: actually the run-parts approach does not solve the issue entirely. hooks for different events are still processed in parallel.