[systemd-devel] Get exit status inside ExecStopPost ?
Lennart Poettering
lennart at poettering.net
Mon Apr 21 23:21:35 PDT 2014
On Fri, 11.04.14 12:19, Anand Patil (anand.prabhakar.patil at gmail.com) wrote:
> Hi everyone,
>
> In a service's ExecStopPost, is there an easy way to access the exit status
> of the service's ExecStart process?
Read the ExecMainCode and ExecMainStatus properties of the Service bus
object. They correspond directly to what .si_code and .si_status retuned
by waitid().
Lennart
--
Lennart Poettering, Red Hat
More information about the systemd-devel
mailing list