diff options
author | Mark Hindley <mark@hindley.org.uk> | 2018-10-30 16:45:09 +0000 |
---|---|---|
committer | Mark Hindley <mark@hindley.org.uk> | 2018-10-30 16:45:09 +0000 |
commit | 6d97c489b9675603a45eb1ce7940d0a4e416fb71 (patch) | |
tree | 3e8540dbdfa4f769fc31ca8c731e744b6c46dadd /man/sd_booted.xml | |
parent | 8ab330a1c21e46712a684cb720ee576e550f1799 (diff) |
Revert all modifications to upstream manpages.
Diffstat (limited to 'man/sd_booted.xml')
-rw-r--r-- | man/sd_booted.xml | 27 |
1 files changed, 20 insertions, 7 deletions
diff --git a/man/sd_booted.xml b/man/sd_booted.xml index 1dc519602..c7f64b5aa 100644 --- a/man/sd_booted.xml +++ b/man/sd_booted.xml @@ -11,7 +11,7 @@ <refentryinfo> <title>sd_booted</title> - <productname>elogind</productname> + <productname>systemd</productname> </refentryinfo> <refmeta> @@ -26,7 +26,7 @@ <refsynopsisdiv> <funcsynopsis> - <funcsynopsisinfo>#include <elogind/sd-daemon.h></funcsynopsisinfo> + <funcsynopsisinfo>#include <systemd/sd-daemon.h></funcsynopsisinfo> <funcprototype> <funcdef>int <function>sd_booted</function></funcdef> @@ -37,21 +37,34 @@ <refsect1> <title>Description</title> - <para><function>sd_booted()</function> is a compatibility function - that will always return 0. elogind is not meant to be used on systems - that are booted with systemd. Use systemd-login on such systems.</para> + <para><function>sd_booted()</function> checks whether the system + was booted up using the systemd init system.</para> </refsect1> <refsect1> <title>Return Value</title> - <para>This function always returns zero.</para> + <para>On failure, this call returns a negative errno-style error + code. If the system was booted up with systemd as init system, + this call returns a positive return value, zero otherwise.</para> + </refsect1> + + <refsect1> + <title>Notes</title> + + <xi:include href="libelogind-pkgconfig.xml" xpointer="pkgconfig-text"/> + + <para>Internally, this function checks whether the directory + <filename>/run/systemd/system/</filename> exists. A simple check + like this can also be implemented trivially in shell or any other + language.</para> </refsect1> <refsect1> <title>See Also</title> <para> - <citerefentry><refentrytitle>elogind</refentrytitle><manvolnum>8</manvolnum></citerefentry>, + <citerefentry><refentrytitle>systemd</refentrytitle><manvolnum>1</manvolnum></citerefentry>, + <citerefentry><refentrytitle>sd-daemon</refentrytitle><manvolnum>3</manvolnum></citerefentry> </para> </refsect1> |