[systemd-devel] ActiveState property with value "inactive"is not being sent out when service is killed by signal

Pradeepa Kumar cdpradeepa at gmail.com
Wed Jul 27 09:47:54 UTC 2016


Thanks Adrien.
yes it is same issue.
Could you please let me know how did you resolve this ?
I was browsing through sytemd code and my theory is that by the time
properties changed signal is being prepared to be sent, service has already
gone through mutiple state changes or the unit is unloaded and hence no
property changeg signal is sent out.
As workaround , I am planning to watch on SubState instead of ActiveState
in PropertiesChanged signal and also have ExecStopPost in service file.
I have noticied that, when a service becomes inactive  I always get
SubState=stop-post (when i have ExecStopPost ).

Can anyone please comment if this is correct work-around ?

Thanks


On Wed, Jul 27, 2016 at 2:26 PM, Adrien Besnard <adrien.besnard at gmail.com>
wrote:

> I may be wrong, but it sounds like the issue I encoutered here:
> https://github.com/systemd/systemd/issues/3390. I also wanted to build a
> service monitoring tool :)
>
> Cheers,
> --
> Adrien BESNARD
>
> 2016-07-26 11:24 GMT+02:00 Pradeepa Kumar <cdpradeepa at gmail.com>:
>
>> Hi
>> ActiveState property with value "inactive"is not being sent out when
>> service is killed by signal
>> I am using 219 version.
>> I logged issue https://github.com/systemd/systemd/issues/3807
>> Thanks
>>
>>
>>
>> _______________________________________________
>> systemd-devel mailing list
>> systemd-devel at lists.freedesktop.org
>> https://lists.freedesktop.org/mailman/listinfo/systemd-devel
>>
>>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.freedesktop.org/archives/systemd-devel/attachments/20160727/94ad0311/attachment.html>


More information about the systemd-devel mailing list