[systemd-devel] Help with making socket activation work.
Andrei Borzenkov
arvidjaar at gmail.com
Fri Jun 27 15:02:40 UTC 2025
27.06.2025 17:50, Stef Bon wrote:
>
> Ok. The environment variable won't change when calling sd_notify.
> I understand that. But how can I make socket activation work after
> the main process osns system has forked? Is it required to fork
> anyway....
>
Invoke sd_listen_fds before fork, parse LISTEN_FDS yourself or try
setenv("LISTEN_PID", ...) after fork.
More information about the systemd-devel
mailing list