[systemd-devel] Antw: [EXT] Re: [EXTERNAL] Re: ExecStop doesn't get called when service crashes

Ulrich Windl Ulrich.Windl at rz.uni-regensburg.de
Wed Jun 10 09:46:03 UTC 2020


>>> Reindl Harald <h.reindl at thelounge.net> schrieb am 10.06.2020 um 08:57 in
Nachricht
<24655_1591772239_5EE0844E_24655_111_1_4d778c1b-9150-c64e-574b-e5beb1b68d6a at thel
unge.net>:

> 
> Am 10.06.20 um 05:27 schrieb Baskaran, Vinothkumar:
>> Hi Reindal,
>> 
>> Thanks for the inputs.
>> 
>> In my case, the service is successfully started. The pre-script's return 
> status is also success. Please find the output below. Still, ExecStop doesn't 
> get invoked. I tried replacing it with ExecStopPost, it gets invoked 
> successfully.  But, ExecStopPost cannot be used, since it gets invoked on 
> failed cases too. 
> 
> your subject "ExecStop doesn't get called when service crashes" simply
> makes no sense at all then  because that's what a failed case is

Interesting case: Would FailureAction= be called then?





More information about the systemd-devel mailing list