mirror of
https://github.com/systemd/systemd.git
synced 2024-12-22 17:35:35 +03:00
Merge pull request #26146 from keszybz/two-man-page-tweaks
Two man page tweaks
This commit is contained in:
commit
e24652ac2e
@ -436,10 +436,11 @@
|
||||
<para>A service could send the following after completing
|
||||
initialization:</para>
|
||||
|
||||
<programlisting>sd_notifyf(0, "READY=1\n"
|
||||
"STATUS=Processing requests…\n"
|
||||
"MAINPID=%lu",
|
||||
(unsigned long) getpid());</programlisting>
|
||||
<programlisting>
|
||||
sd_notifyf(0, "READY=1\n"
|
||||
"STATUS=Processing requests…\n"
|
||||
"MAINPID=%lu",
|
||||
(unsigned long) getpid());</programlisting>
|
||||
</example>
|
||||
|
||||
<example>
|
||||
@ -447,10 +448,11 @@
|
||||
|
||||
<para>A service could send the following shortly before exiting, on failure:</para>
|
||||
|
||||
<programlisting>sd_notifyf(0, "STATUS=Failed to start up: %s\n"
|
||||
"ERRNO=%i",
|
||||
strerror_r(errnum, (char[1024]){}, 1024),
|
||||
errnum);</programlisting>
|
||||
<programlisting>
|
||||
sd_notifyf(0, "STATUS=Failed to start up: %s\n"
|
||||
"ERRNO=%i",
|
||||
strerror_r(errnum, (char[1024]){}, 1024),
|
||||
errnum);</programlisting>
|
||||
</example>
|
||||
|
||||
<example>
|
||||
@ -473,9 +475,10 @@
|
||||
to synchronize against reception of all notifications sent before
|
||||
this call is made.</para>
|
||||
|
||||
<programlisting>sd_notify(0, "READY=1");
|
||||
/* set timeout to 5 seconds */
|
||||
sd_notify_barrier(0, 5 * 1000000);
|
||||
<programlisting>
|
||||
sd_notify(0, "READY=1");
|
||||
/* set timeout to 5 seconds */
|
||||
sd_notify_barrier(0, 5 * 1000000);
|
||||
</programlisting>
|
||||
</example>
|
||||
</refsect1>
|
||||
|
@ -1386,7 +1386,7 @@ After=sys-subsystem-net-devices-ens1.device</programlisting>
|
||||
</itemizedlist></para>
|
||||
|
||||
<para>Whichever ID mapping option is used, the same mapping will be used for users and groups IDs. If
|
||||
<option>rootidmap</option> is used, the group owning the bind mounted directory will have no effect</para>
|
||||
<option>rootidmap</option> is used, the group owning the bind mounted directory will have no effect.</para>
|
||||
|
||||
<para>Note that when this option is used in combination with <option>--private-users</option>, the resulting
|
||||
mount points will be owned by the <constant>nobody</constant> user. That's because the mount and its files and
|
||||
|
@ -1245,7 +1245,7 @@
|
||||
</para></listitem>
|
||||
|
||||
<listitem><para><literal>device-tree-compatible(<replaceable>value</replaceable>)</literal>
|
||||
matches systems with a device tree that is compatible with <literal>value</literal>.
|
||||
matches systems with a device tree that are compatible with <literal>value</literal>.
|
||||
</para></listitem>
|
||||
|
||||
<listitem><para><literal>smbios-field(<replaceable>field</replaceable>
|
||||
|
Loading…
Reference in New Issue
Block a user