teknoraver / rpms / systemd

Forked from rpms/systemd 3 months ago
Clone

Blame SOURCES/0002-man-explain-NAME-in-systemctl-man-page.patch

572a44
From bc7d6c8e11a22d29b14b6070117f261961eadb23 Mon Sep 17 00:00:00 2001
a4b143
From: =?UTF-8?q?V=C3=A1clav=20Pavl=C3=ADn?= <vpavlin@redhat.com>
a4b143
Date: Thu, 31 Oct 2013 14:36:41 +0100
a4b143
Subject: [PATCH] man: explain NAME in systemctl man page
a4b143
a4b143
---
a4b143
 man/systemctl.xml | 13 +++++++++++++
a4b143
 1 file changed, 13 insertions(+)
a4b143
a4b143
diff --git a/man/systemctl.xml b/man/systemctl.xml
572a44
index e789d4b..166282c 100644
a4b143
--- a/man/systemctl.xml
a4b143
+++ b/man/systemctl.xml
a4b143
@@ -63,6 +63,19 @@ along with systemd; If not, see <http://www.gnu.org/licenses/>.
a4b143
     introspect and control the state of the
a4b143
     <citerefentry><refentrytitle>systemd</refentrytitle><manvolnum>1</manvolnum></citerefentry>
a4b143
     system and service manager.</para>
a4b143
+
a4b143
+    <para>For Unit Commands the <replaceable>NAME</replaceable> represents full name of unit.
a4b143
+    <programlisting>
a4b143
+systemctl start foo.service
a4b143
+    </programlisting>
a4b143
+    For Unit File Commands the <replaceable>NAME</replaceable> represents full name of the unit file, or absolute path to the unit file.
a4b143
+    <programlisting>
a4b143
+systemctl start /path/to/foo.service
a4b143
+    </programlisting>
a4b143
+    While working with services/service files, <command>systemctl</command> is able to append .service suffix when it is missing.
a4b143
+    <programlisting>
a4b143
+systemctl start foo
a4b143
+    </programlisting></para>
a4b143
   </refsect1>
a4b143
 
a4b143
   <refsect1>