man/systemd-notify: add a note on return value

The options `--booted` is compared with the command `systemctl
is-system-running`, but the return values have differnt meanings and it
is not a drop-in.
This commit is contained in:
Christian Hesse
2025-09-19 17:04:53 +02:00
committed by Lennart Poettering
parent 3d97db8f3c
commit 9f8c4bc65a

View File

@@ -179,8 +179,8 @@
<citerefentry><refentrytitle>sd_booted</refentrytitle><manvolnum>3</manvolnum></citerefentry>. An
alternate way to check for this state is to call
<citerefentry><refentrytitle>systemctl</refentrytitle><manvolnum>1</manvolnum></citerefentry> with
the <command>is-system-running</command> command. It will return <literal>offline</literal> if the
system was not booted with systemd. </para></listitem>
the <command>is-system-running</command> command. It will output <literal>offline</literal> if the
system was not booted with systemd, though the return value has a different meaning.</para></listitem>
</varlistentry>
<varlistentry>