Le 05/04/2026 à 13:25, Rainer Weikusat via Dng a écrit :
> Didier Kryn <kryn@???> writes:
>> Le 04/04/2026 à 18:49, Rainer Weikusat via Dng a écrit :
>>> int main(void)
>>> {
>>> extern int wait(int *);
>>> while (1) wait(0);
>>> return 0;
>>> }
>> Well, this is for the second-stage init; but it must also respond
>> to reboot requests and, maybe, monitor at least one getty.
>>
>> And it comes after a first stage which needs to start some daemon
>> launcher. Otherwise it is pointless to reap processes since there
>> arent any (~:
> That's what the shell-script was for. At worst, if a shell script cannot
> yet be executed (seems very improbable), one would need to use two
> executable binaries, one which launches the startup script and then
> execs the other which waits for orphaned processes. There's really no
> reason why init should do anything else, this can all be provided by
> other processes/ programs. Poettering is a dolt. Or an early attempt at
> creating an LLM which went really awry.
>
> I might eventually create something that's compatible SysV rc based on
> this idea. On the outset, it looks like an interesting project.
Actually. Good idea.