[systemd-devel] calling systemctl from C++
Michael Biebl
mbiebl at gmail.com
Sun Nov 6 12:43:30 PST 2011
2011/11/6 Michael D. Berger <m.d.berger at ieee.org>:
> I see no way to directly call systemctl from a C++
> program, so I'll use a pipe. Right? I think a
> library function would be better.
Not knowing exactly what you are trying to do, please note you can use
D-Bus to access systemd.
If you are using C++, using QtDBus is probably the most convenient way.
Michael
--
Why is it that all of the instruments seeking intelligent life in the
universe are pointed away from Earth?
More information about the systemd-devel
mailing list