[systemd-devel] race conditions after SIGTERM

Reindl Harald h.reindl at thelounge.net
Thu Aug 14 05:28:15 PDT 2014



Am 14.08.2014 um 14:24 schrieb Lennart Poettering:
> On Sun, 27.07.14 20:04, Reindl Harald (h.reindl at thelounge.net) wrote:
> 
>> but that still don't explain why "ExecStopPost=/usr/bin/true" or
>> whatever "ExecStopPost" solves that and if it is not supported
>> why "systemctl" don't return after the one and only process
>> exited
> 
> Well, this is a misunderstanding how ExecStop= and friends are supposed
> to work. They are supposed to do what they did on sysvinit:
> synchronously terminate a service. And not asynchronously do that. We
> hence don't wait for anything else then, because what is left afterwards
> must be left-over processes that ExecStop= and friends couldn't clean up
> properly...

no - the point was why was mysqld not finished with write down
his ariadb-logs while systemctl returns and hence the corruption
by start rsysnc the datadir

in case of Type=simple and mysqld directly called in ExecStart
without the mysqld_safe script there are not much processes
to "left over"

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 181 bytes
Desc: OpenPGP digital signature
URL: <http://lists.freedesktop.org/archives/systemd-devel/attachments/20140814/b72230ed/attachment.sig>


More information about the systemd-devel mailing list