[systemd-devel] StartLimitAction Feature
Lennart Poettering
lennart at poettering.net
Sun Mar 2 18:39:49 PST 2014
On Sun, 02.03.14 18:00, Usman (desert03 at yahoo.com) wrote:
> So actually i want to listen on dbus and somehow get a message when an
> application has restarted N number of times within time T and will not
> be started anymore. How do I differentiate this case from normal
> application Release message that I do get each time it restarts?
Application "Release" message? what are you referring to? There is no
such thing.
To watch the state of a unit, make sure to invoke Subscribe() on the
main manager object, and then simply watch standard PropertyChanged()
messages on that unit, and look for the "State" property.
Lennart
--
Lennart Poettering, Red Hat
More information about the systemd-devel
mailing list