For the moment, I gave up writing a nice script based on DBus's PropertiesChanged events, and I made a temporary dirty script which poll the service status. I did not solve that in a good way. -- Adrien BESNARD
2016-07-27 11:47 GMT+02:00 Pradeepa Kumar <cdprade...@gmail.com>: > 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.besn...@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 <cdprade...@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@lists.freedesktop.org >>> https://lists.freedesktop.org/mailman/listinfo/systemd-devel >>> >>> >> >
_______________________________________________ systemd-devel mailing list systemd-devel@lists.freedesktop.org https://lists.freedesktop.org/mailman/listinfo/systemd-devel