troglobit / finit

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

A crashing run statement in runlevel S restarts indefinitely #351

Closed troglobit closed 1 year ago

troglobit commented 1 year ago

@wkz found the other day that a run [S] foo stanza, where foo crashes immediately (again and again), is restarted indefinitely. Without any delay or back-off.

This seems to be a regression in the 4.4-dev release cycle.

troglobit commented 1 year ago

@wkz sorry, I just cannot seem to reproduce the problem you saw.

troglobit commented 1 year ago

Root cause found, the run/task was DIRTY (had been touched in the current runlevel) and was thus transitioned to HALTED state instead of remaining in DONE. In HALTED state it was found to be enabled and thus restarted ... over and over again.

Edit: apparently we've got support for restarting run/tasks in the same runlevel by touching them. So the prepared fix was incorrect, stay tuned for more.