Re: hint to know the state of the service using function

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



61;7603;1cOn Fr, 23.08.24 15:51, Rajmohan. R (Rajmohan.R@xxxxxxxx) wrote:

> Hi,
> Below is the change related to logging of the units (service) while changing the state [in]active_[exit/enter].
>
> I did not get any hint from source code, to know the state change using function, without querying the target system through CLI.
> Could someone from the forum help in providing a hint on how to get the state of the services without querying through CLI.
>
> Instead of below changes, is there any alternative modification i
> can do to know the state of the service.

I am not sure what you are asking for, but we do send out dbus property
change messages whenever a unit's state changes. Also there already is
debug logging about these state changes in place, it's the 2nd to last
line in unit_notify() that takes care of that.

Maybe I am missing what you are looking for?

Lennart

--
Lennart Poettering, Berlin



[Index of Archives]     [LARTC]     [Bugtraq]     [Yosemite Forum]     [Photo]

  Powered by Linux