[systemd-devel] Do Systemd service have limitation w.r.t IPC on forked process

Lennart Poettering mzxreary at 0pointer.de
Wed Jul 28 19:13:27 UTC 2021


On Mi, 28.07.21 22:17, Stiju (stiju.easo at gmail.com) wrote:

> Hi,
> I have a templated service and socket, for my program.
> thou may not be relevant here , socket is written for inetd (ie FD 0 and 1)
> the service type is put as "simple" in systemd configuration,
> the service spawns many processes in some flows ( fork + execv ) .
> the spawned process opens , IPC connection ( normal socket to another
> system ), the process is killed by systemd.
> is this expected?

Consider enabling debug logging in PID 1. It logs about everything it
kills then, and the logs should explain why.

"systemd-analyze log-level debug" is the command to do that during runtime.

Lennart

--
Lennart Poettering, Berlin


More information about the systemd-devel mailing list