<div dir="ltr">I am writing service monitoring app, which needs to know when the services go from active to inactive/failed.<div>I am subscribing to PropertiesChanged signal and watching ActiveState.</div><div>but this is not sufficient. When a service is stopped using kill/systemctl stop , i see that i get ActiveState=deactivating  changed signal  twice :one with  Substate="stop-sigterm" and another with Substate="stop-post".</div><div>As per my previous queries, I understand that only ActiveState is considered an API and we should not be looking into SubState. but I dont get ActiveState=inactive when a service is stopped.</div><div>So this seems to be a bug.</div><div>For workaround, is there any way to figure out when an service is stopped ?  As workaround, should i watch SubState ?</div><div>Thanks</div><div><br></div><div><br></div><div><br></div></div><div class="gmail_extra"><br><div class="gmail_quote">On Tue, Jul 26, 2016 at 2:54 PM, Pradeepa Kumar <span dir="ltr"><<a href="mailto:cdpradeepa@gmail.com" target="_blank">cdpradeepa@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><div>Hi</div><div>ActiveState property with value "inactive"is not being sent out when service is killed by signal</div><div>I am using 219 version.</div><div>I logged issue <a href="https://github.com/systemd/systemd/issues/3807" target="_blank">https://github.com/systemd/systemd/issues/3807</a></div><div>Thanks</div><div><br></div><div><br></div></div>
</blockquote></div><br></div>