anitazha / rpms / systemd

Forked from rpms/systemd 3 years ago
Clone

Blame SOURCES/0230-man-information-about-available-properties.patch

923a60
From 285bd714e050c189f6e5e9aa6b59173997ae550e Mon Sep 17 00:00:00 2001
923a60
From: =?UTF-8?q?Zbigniew=20J=C4=99drzejewski-Szmek?= <zbyszek@in.waw.pl>
923a60
Date: Mon, 29 Jun 2015 20:19:56 -0400
923a60
Subject: [PATCH] man: information about available properties
923a60
923a60
https://bugzilla.redhat.com/show_bug.cgi?id=1144496
923a60
(cherry picked from commit ea539eb65950bea7a9734424e660ef84f6f30e6c)
923a60
923a60
Cherry-picked from: ea539eb
923a60
Resolves: #1222517
923a60
---
923a60
 man/systemctl.xml | 28 +++++++++++++++++++++++-----
923a60
 1 file changed, 23 insertions(+), 5 deletions(-)
923a60
923a60
diff --git a/man/systemctl.xml b/man/systemctl.xml
923a60
index 44ec0d7bcf..6b29b8cd03 100644
923a60
--- a/man/systemctl.xml
923a60
+++ b/man/systemctl.xml
923a60
@@ -111,12 +111,30 @@
923a60
 
923a60
         <listitem>
923a60
           <para>When showing unit/job/manager properties with the
923a60
-          <command>show</command> command, limit display to certain
923a60
-          properties as specified as argument. If not specified, all
923a60
-          set properties are shown. The argument should be a
923a60
+          <command>show</command> command, limit display to properties
923a60
+          specified in the argument. The argument should be a
923a60
           comma-separated list of property names, such as
923a60
-          <literal>MainPID</literal>. If specified more than once, all
923a60
-          properties with the specified names are shown.</para>
923a60
+          <literal>MainPID</literal>. Unless specified, all known
923a60
+          properties are shown. If specified more than once, all
923a60
+          properties with the specified names are shown. Shell
923a60
+          completion is implemented for property names.</para>
923a60
+
923a60
+          <para>For the manager itself,
923a60
+          <command>systemctl show</command> will show all available
923a60
+          properties. Those properties are documented in
923a60
+          <citerefentry><refentrytitle>systemd-system.conf</refentrytitle><manvolnum>5</manvolnum></citerefentry>.
923a60
+          </para>
923a60
+
923a60
+          <para>Properties for units vary by unit type, so showing any
923a60
+          unit (even a non-existent one) is a way to list properties
923a60
+          pertaining to this type. Similarly showing any job will list
923a60
+          properties pertaining to all jobs. Properties for units are
923a60
+          documented in
923a60
+          <citerefentry><refentrytitle>systemd.unit</refentrytitle><manvolnum>5</manvolnum></citerefentry>,
923a60
+          and the pages for individual unit types
923a60
+          <citerefentry><refentrytitle>systemd.service</refentrytitle><manvolnum>5</manvolnum></citerefentry>,
923a60
+          <citerefentry><refentrytitle>systemd.socket</refentrytitle><manvolnum>5</manvolnum></citerefentry>,
923a60
+          etc.</para>
923a60
         </listitem>
923a60
       </varlistentry>
923a60