[PATCH] udhcpc: perform_release(): Unconditionally call deconfig script

Laurent Bercot ska-dietlibc at skarnet.org
Fri Aug 26 17:00:51 UTC 2016


On 26/08/2016 18:53, Denys Vlasenko wrote:
> However, a more robust solution is to have process babysitter
> to run some cleanup script. Imagine that udhcpc is killed with SIGKILL.
> Can't handle that easily inside udhcpc...

  Does the cleanup script need to be run every time udhcpc dies?
A process supervisor can run a finish script that knows the exit code of
udhcpc, or the signal that killed it, but if there are moments when you
_don't_ want to run the cleanup script if udhcpc receives a SIGKILL, then
it's more complicated. A supervisor can only know how the service died,
it cannot know the state the service was in when it got killed.

-- 
  Laurent



More information about the busybox mailing list