Bug#935302: insserv: bootlogd stops too early
Dmitry Bogatov
KAction at disroot.org
Sun Aug 25 17:06:57 BST 2019
[2019-08-23 13:11] Jesse Smith <jessefrgsmith at yahoo.ca>
> >> @Jesse Is is possible to specify dependencies between two scripts
> >> that both depends on $all?
>
> What we might consider is adding new expandable dependency variables to
> insserv.conf. We already have things like $all, $time and $network.
> Maybe we need another variable like $rc-local to better define when
> scripts are supposed to run? Then bootlogd could depend on $rc-local
> instead of $all?
I tried following,
* add '$rc_local rc.local' into /etc/insserv.conf
* add 'Required-Start: $rc_local' into /etc/init.d/bootlogd
but it still causes errors from insserv(8). Did I correctly understood
your suggestion?
Still, I think the most straightforward (from interface point of view)
way is to add support inter-depencies between 'Required-Start: $all'
scripts.
Handwavingly, I see following algorithm:
* split init scripts into two groups -- ones that depends on $all and
ones that don't
* Implement topological sorting in both group, ignoring $all in first
group
* concatenate resulting ordering
Are there implementation problems, that make is unfeasible?
--
Note, that I send and fetch email in batch, once in a few days.
Please, mention in body of your reply when you add or remove recepients.
More information about the Debian-init-diversity
mailing list