diff options
author | Zbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl> | 2023-05-30 13:40:45 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-05-30 13:40:45 +0200 |
commit | 5097077954f9985c48f27805cca00a5797b6117e (patch) | |
tree | f96776e4d8b66aa6516f839da7dd5d03c3275e7f /man | |
parent | man: mention that udevadm verify also checks for udev rules style issues (diff) | |
parent | man/analyze: drop paths from output examples (diff) | |
download | systemd-5097077954f9985c48f27805cca00a5797b6117e.tar.xz systemd-5097077954f9985c48f27805cca00a5797b6117e.zip |
Merge pull request #27842 from keszybz/man-page-links
Man page formatting and links and such
Diffstat (limited to 'man')
-rw-r--r-- | man/systemd-analyze.xml | 16 | ||||
-rw-r--r-- | man/tmpfiles.d.xml | 45 |
2 files changed, 35 insertions, 26 deletions
diff --git a/man/systemd-analyze.xml b/man/systemd-analyze.xml index e0eba1cf64..4aa73d91f7 100644 --- a/man/systemd-analyze.xml +++ b/man/systemd-analyze.xml @@ -304,10 +304,13 @@ Timestamp units-load-finish: Thu 2019-03-14 23:28:07 CET <title><command>systemd-analyze malloc [<replaceable>D-Bus service</replaceable>…]</command></title> <para>This command can be used to request the output of the internal memory state (as returned by - <citerefentry><refentrytitle>malloc_info</refentrytitle><manvolnum>3</manvolnum></citerefentry>) of - a D-Bus service implementing this pattern. If no service is specified, the command will be sent to + <citerefentry project='man-pages'><refentrytitle>malloc_info</refentrytitle><manvolnum>3</manvolnum></citerefentry>) + of a D-Bus service. If no service is specified, the query will be sent to <filename>org.freedesktop.systemd1</filename> (the system or user service manager). The output format - is subject to change without notice and should not be parsed by applications.</para> + is not guaranteed to be stable and should not be parsed by applications.</para> + + <para>The service must implement the <filename>org.freedesktop.MemoryAllocation1</filename> interface. + In the systemd suite, it is currently only implemented by the manager.</para> </refsect2> <refsect2> @@ -734,7 +737,7 @@ $ systemd-analyze verify /tmp/source Failed to prepare filename /tmp/source: Invalid argument $ systemd-analyze verify /tmp/source:alias.service -/tmp/systemd-analyze-XXXXXX/alias.service:7: Unknown key name 'MysteryKey' in section 'Service', ignoring. +alias.service:7: Unknown key name 'MysteryKey' in section 'Service', ignoring. </programlisting> </example> @@ -794,9 +797,10 @@ $ systemd-analyze verify /tmp/source:alias.service Packaging Metadata</ulink> documentation for more information.</para> <example> - <title>Table output</title> + <title>Print information about a core file as JSON</title> - <programlisting>$ systemd-analyze inspect-elf --json=pretty /tmp/core.fsverity.1000.f77dac5dc161402aa44e15b7dd9dcf97.58561.1637106137000000 + <programlisting>$ systemd-analyze inspect-elf --json=pretty \ + core.fsverity.1000.f77dac5dc161402aa44e15b7dd9dcf97.58561.1637106137000000 { "elfType" : "coredump", "elfArchitecture" : "AMD x86-64", diff --git a/man/tmpfiles.d.xml b/man/tmpfiles.d.xml index f691eef25d..ef0bb1f7f8 100644 --- a/man/tmpfiles.d.xml +++ b/man/tmpfiles.d.xml @@ -206,11 +206,11 @@ L /tmp/foobar - - - - /dev/null</programlisting> <varlistentry> <term><varname>e</varname></term> <listitem><para>Adjust the mode and ownership of existing directories and remove their contents - based on age. - Lines of this type accept shell-style globs in place of normal path names. Contents of the - directories are subject to time-based cleanup if the age argument is specified. If the age argument - is <literal>0</literal>, contents will be unconditionally deleted every time - <command>systemd-tmpfiles --clean</command> is run.</para> + based on age. Lines of this type accept shell-style globs in place of normal path names. Contents + of the directories are subject to time-based cleanup if the age argument is specified. If the age + argument is <literal>0</literal>, contents will be unconditionally deleted every time + <citerefentry><refentrytitle>systemd-tmpfiles</refentrytitle><manvolnum>8</manvolnum></citerefentry> + <option>--clean</option> is run.</para> <para>For this entry to be useful, at least one of the mode, user, group, or age arguments must be specified, since otherwise this entry has no effect. As an exception, an entry with no effect may @@ -444,17 +444,18 @@ L /tmp/foobar - - - - /dev/null</programlisting> <varlistentry> <term><varname>a</varname></term> <term><varname>a+</varname></term> - <listitem><para>Set POSIX ACLs (access control lists), see <citerefentry - project='man-pages'><refentrytitle>acl</refentrytitle> - <manvolnum>5</manvolnum></citerefentry>. Additionally, if 'X' is used, the execute bit is set only - if the file is a directory or already has execute permission for some user, as mentioned in + <listitem><para>Set POSIX ACLs (access control lists), see + <citerefentry project='man-pages'><refentrytitle>acl</refentrytitle><manvolnum>5</manvolnum></citerefentry>. + Additionally, if 'X' is used, the execute bit is set only if the file is a directory or already has + execute permission for some user, as mentioned in <citerefentry project='man-pages'><refentrytitle>setfacl</refentrytitle><manvolnum>1</manvolnum></citerefentry>. If suffixed with <varname>+</varname>, the specified entries will be added to the existing set. - <command>systemd-tmpfiles</command> will automatically add the required base entries for user - and group based on the access mode of the file, unless base entries already exist or are explicitly - specified. The mask will be added if not specified explicitly or already present. Lines of this type - accept shell-style globs in place of normal path names. This can be useful for allowing additional - access to certain files. Does not follow symlinks.</para></listitem> + <citerefentry><refentrytitle>systemd-tmpfiles</refentrytitle><manvolnum>8</manvolnum></citerefentry> + will automatically add the required base entries for user and group based on the access mode of the + file, unless base entries already exist or are explicitly specified. The mask will be added if not + specified explicitly or already present. Lines of this type accept shell-style globs in place of + normal path names. This can be useful for allowing additional access to certain files. Does not + follow symlinks.</para></listitem> </varlistentry> <varlistentry> @@ -472,8 +473,10 @@ L /tmp/foobar - - - - /dev/null</programlisting> <para>If the exclamation mark (<literal>!</literal>) is used, this line is only safe to execute during boot, and can break a running system. Lines without the exclamation mark are presumed to be safe to - execute at any time, e.g. on package upgrades. <command>systemd-tmpfiles</command> will take lines with - an exclamation mark only into consideration, if the <option>--boot</option> option is given.</para> + execute at any time, e.g. on package upgrades. + <citerefentry><refentrytitle>systemd-tmpfiles</refentrytitle><manvolnum>8</manvolnum></citerefentry> + will take lines with an exclamation mark only into consideration, if the <option>--boot</option> option + is given.</para> <para>For example: <programlisting># Make sure these are created by default so that nobody else can @@ -559,10 +562,12 @@ w- /proc/sys/vm/swappiness - - - - 10</programlisting></para> <para>The user and group to use for this file or directory. This may either be a numeric ID or a user/group name. If omitted or when set to <literal>-</literal>, the user and group of the user who - invokes <command>systemd-tmpfiles</command> is used. For <varname>z</varname> and <varname>Z</varname> - lines, when omitted or when set to <literal>-</literal>, the file ownership will not be modified. These - parameters are ignored for <varname>x</varname>, <varname>r</varname>, <varname>R</varname>, - <varname>L</varname>, <varname>t</varname>, and <varname>a</varname> lines.</para> + invokes + <citerefentry><refentrytitle>systemd-tmpfiles</refentrytitle><manvolnum>8</manvolnum></citerefentry> is + used. For <varname>z</varname> and <varname>Z</varname> lines, when omitted or when set to + <literal>-</literal>, the file ownership will not be modified. These parameters are ignored for + <varname>x</varname>, <varname>r</varname>, <varname>R</varname>, <varname>L</varname>, + <varname>t</varname>, and <varname>a</varname> lines.</para> <para>This field should generally only reference system users/groups, i.e. users/groups that are guaranteed to be resolvable during early boot. If this field references users/groups that only become |