[systemd-devel] Question on service related notifications
Mantas Mikulėnas
grawity at gmail.com
Mon Sep 26 05:12:37 UTC 2016
On Sun, Sep 25, 2016 at 8:04 AM, Pathangi Janardhanan <path.jana at gmail.com>
wrote:
> Hi,
>
> I would like to monitor for systemd related service notifications (for
> e.g. service started, service ready, service stopped or service failed etc.)
>
> I am trying to look through the sd-bus notification, and was looking at
> the org.freedesktop.systemd1.manager and the subscribe method? Is this
> the method to be used for receiving this type of notifications, and if I
> use this would that program receive the correspodning notification through
> the UnitNew() and unitremoved(0 signals?
>
Close, but you'll probably want the Job{Added,Removed} and PropertyChanged
signals instead.
--
Mantas Mikulėnas <grawity at gmail.com>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.freedesktop.org/archives/systemd-devel/attachments/20160926/611d2d1e/attachment.html>
More information about the systemd-devel
mailing list