[systemd-devel] Question about ExecStartPost= and startup process
Francis Moreau
francis.moro at gmail.com
Mon Jun 29 23:57:45 PDT 2015
On 06/29/2015 10:05 AM, Andrei Borzenkov wrote:
[...]
>>
>> service_sigchld_event() {
>> ...
>> } else if (s->control_pid == pid) {
>> ...
>> if (s->control_command &&
>> s->control_command->command_next &&
>> f == SERVICE_SUCCESS) {
>> service_run_next_control(s);
>> }
>>
>> this looks like that forking type services could had several commands
>> queued in ExecStart directive...
>>
>
> IIRC this is checked when unit definition is parsed.
>
I don't think so, service_sigchld_event() is called when a child process
of systemd has just died and the condition is testing if the died
process is the process defined by ExecStart=.
Well it's my understanding, hence my confusion.
Thanks
More information about the systemd-devel
mailing list