[systemd-devel] Getting boot progress and messages
Umut Tezduyar Lindskog
umut at tezduyar.com
Wed Jun 24 02:30:29 PDT 2015
You can use PID 1's DBUS API -
http://www.freedesktop.org/wiki/Software/systemd/dbus/. Particularly
you should be interested in NJobs and Progress property.
Since it is too late to wait for DBus to come up you need to connect
to systemd directly (instead of going through dbus-daemon). The socket
you need to connect is "/run/systemd/private"
(http://www.freedesktop.org/software/systemd/man/systemd.html).
IMPORTANT: Man page says "This interface is private to systemd and
should not be used in external projects." for /run/systemd/private. I
am not sure if this is still the case. If not, we need to change the
man page.
Umut
On Wed, Jun 24, 2015 at 10:40 AM, Thomas Schmidt
<t.schmidt at md-network.de> wrote:
> Hello,
> for embedded system I’m writing small boot splash/progress bar daemon (unfortunately plymouth doesn’t fit). Even after study of especially sd_.*(3) manuals, mail archives, and source code it is not clear for me what could be the best way to obtain the boot messages and boot proceed from another process.
> On DBus respective SDBus API required information is available, unfortunately the BUS is activated very late.
>
> Could someone point me into the right direction which interface (e.g. socket/fifo/other API) could be the right systemd conform way ?
>
>
> Many Thanks
> Kind Regards
> Thomas Schmidt
> _______________________________________________
> systemd-devel mailing list
> systemd-devel at lists.freedesktop.org
> http://lists.freedesktop.org/mailman/listinfo/systemd-devel
More information about the systemd-devel
mailing list