troglobit / finit

Fast init for Linux. Cookies included
https://troglobit.com/projects/finit/
MIT License
633 stars 63 forks source link

An [S] task with condition may never run #86

Closed troglobit closed 6 years ago

troglobit commented 6 years ago

Some bootstrap [S] tasks may not get time to run at boot if a condition is slow to be asserted.

E.g.

task [S] </svc/sbin/syslogd> /sbin/probe -- Probe system

In a setup at Westermo this little task, moved from /etc/finit.conf and converted from a run to a task, never ran once. Instead, Finit just continue to change to the default runlevel.

It would be highly useful if Finit could ensure that a task, as well as run, stanza is run at least once per configured runlevel. The run stanza is blocking, but a task must not block a runlevel change forever, possibly keep a separate timer (10 sec?) to let tasks complete.