[systemd-devel] Getting the exit code of a process under a scope
Lennart Poettering
lennart at poettering.net
Tue Aug 2 18:55:53 UTC 2016
On Tue, 02.08.16 10:36, Mrunal Patel (mpatel at redhat.com) wrote:
> Is there a way to get the exit code of a process run under a systemd scope
> using systemd dbus API?
This is not supported. systemd only knows the exit codes of processes
it gets SIGCHLD for (as that's where that info is passed). But scopes
are for processes managed and forked off by *other* subsystems, hence
systemd generally does not get SIGCHLD for the processes and cannot
report them.
Lennart
--
Lennart Poettering, Red Hat
More information about the systemd-devel
mailing list