anitazha / rpms / systemd

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