Re: Init : someone could comment this ?

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Casey Dahlin <cjdahlin@xxxxxxxx> writes:

>>> A shell which emulates POSIX process handling in-process and uses
>>> direct builtin function calls for commands like sed [...] Pipes and
>>> the like would also have to be emulated
>>
>> For what do you need 'sed' or pipes to start/stop a daemon?
>>
> It appears at least 13 times in our current init system.

I think, nobody doubts that current initsystem is the worst one of
the major linux distributions.  By changing paradigm from forking to
non-forking daemon you can avoid all the complicated 'stop' code;
e.g. 'start' will be

| pid = fork();
| if (pid==0) { /* ... */ execve(...); }

and 'stop' be

| kill(pid, SIGTERM); /* wait for timeout/sigchld */ kill(pid, SIGKILL);


But python or other bloaty scripting languages are not a solution and
completely unacceptable at this place.



Enrico

-- 
fedora-devel-list mailing list
fedora-devel-list@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/fedora-devel-list

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Index of Archives]     [Fedora Announce]     [Fedora Kernel]     [Fedora Testing]     [Fedora Formulas]     [Fedora PHP Devel]     [Kernel Development]     [Fedora Legacy]     [Fedora Maintainers]     [Fedora Desktop]     [PAM]     [Red Hat Development]     [Gimp]     [Yosemite News]
  Powered by Linux