]> git.ipfire.org Git - thirdparty/systemd.git/commitdiff
man/systemd-notify: add a note on return value
authorChristian Hesse <mail@eworm.de>
Fri, 19 Sep 2025 15:04:53 +0000 (17:04 +0200)
committerLennart Poettering <lennart@poettering.net>
Mon, 22 Sep 2025 06:47:57 +0000 (08:47 +0200)
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.

man/systemd-notify.xml

index b64610dbba395b82bfc5a1a256303bfad5fa6823..0e0cc6cdd09365c1b804369f052d5531a5227caa 100644 (file)
         <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>