:: Re: [DNG] Reaping orphan processes.
Góra strony
Delete this message
Reply to this message
Autor: Rainer Weikusat
Data:  
Dla: dng
Temat: Re: [DNG] Reaping orphan processes.
aitor <aitor_czr@???> writes:
> On 6/3/23 18:47, Rainer Weikusat via Dng wrote:
>> The Linux sysvinit is a seriously old and crufty codebase with a lot of
>> abandoned mess in it
>
> One of the drawbacks of sysvinit is that it cannot run daemons in the foreground.
> As opposed to it, daemons supervised by runit must necessarily run in the foreground,
> but often they have been designed to run in the background with
> sysvinit in mind.


The Linux sysvinit program actually has a facility for running processes
monitored which must not background themselves for this to work. It's
just traditionally unused for anything except running gettys on virtual
consoles and 'other login ports' (eg, a serial port).

The only accidentally related RedHat (etc) shell script based process
management system usually driven by the sysvinit program lacks a lot of
useful process mangement tools, a generic one for creating a background
process to run a program in it among them. Various tools which do
support this exists, but they all suffer heavily from feeping
creaturism, ie, another guys trying to implement every process
management feature he could think of in a single program (eg, the Debian
start-stop-daemon tool).