anitazha / rpms / systemd

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