Re: [systemd-devel] libsystemd export message_append_cmdline
On Mon, 15.08.16 11:05, Brad Bishop (bradl...@fuzziesquirrel.com) wrote: > 2 - Should I not be writing my own app - i.e. is this something > busctl can do or makes sense to extend it to do? busctl is a debugging tool and useful for calling methods. It's not a good fit if you want to actively watch remote objects for specific conditions, really. > 3 - If I write my own application, message_append_cmdline seems to > be a perfect fit for parsing cmdlines…how does the community feel > about exporting it? Hmm, I figure exposing the bus message serialization and deserialization to user strings as part of sd-bus would be OK. But it need some clean-ups and tests first. Lennart -- Lennart Poettering, Red Hat ___ systemd-devel mailing list systemd-devel@lists.freedesktop.org https://lists.freedesktop.org/mailman/listinfo/systemd-devel
Re: [systemd-devel] libsystemd export message_append_cmdline
On Mon, Aug 15, 2016 at 6:05 PM, Brad Bishopwrote: > Hi list > > I am developing an sd-event+sd-bus application that simply blocks until a > property changes to a specific value using org.freedesktop.DBus. > ObjectManager.PropertiesChanged and org.freedesktop.DBus.Properties.Get. > > I plan on using this application from service units to express ordering > dependencies. > > A couple questions: > > 1 - Does anyone have any feedback on this approach in general? > Depends on how you're going to use the app. I think that's exactly how (After=)NetworkManager-wait-online.service is implemented, for example. > 2 - Should I not be writing my own app - i.e. is this something busctl can > do or makes sense to extend it to do? > I think I've seen someone do this in shell, using dbus-send and dbus-monitor... please don't. -- Mantas Mikulėnas ___ systemd-devel mailing list systemd-devel@lists.freedesktop.org https://lists.freedesktop.org/mailman/listinfo/systemd-devel