hi folks

i've been working on spec'ing out the delegated restarter
behaviour for the Network Auto-Magic project, and one thing
i was thinking is it'd be nice to be able to add to the reasons
that "svcs -xv" displays - from what i can tell they're
hard-coded in svcs/explain.c.  is there a way to augment these
so a delegated restarter can provide an additonal reason?
what i'd like to get to is to be able to provide additonal
reasons for the offline state, such as "Attempting to contact DHCP
server" or "A network cable is unplugged", that sort of thing.
i've noticed that explain.c uses the "aux_state" property
is used to hold additional state information (for cases
such as restarting too quickly etc), what about
augmenting that to have a "delegated" value that, if
set, gets explain.c to reference a "delegated_reason" property
value that the delegated restarter can set? basically something
that tells explain.c that it should pick up the reason from
a well-known property is what's needed i think. thanks!

alan

Reply via email to